(function (I) { function supported() { return navigator.storage && typeof navigator.storage.persist === 'function'; } I.isPersisted = async function () { if (!supported()) return false; return navigator.storage.persisted(); }; I.requestPersistence = async function () { if (!supported()) return false; if (await navigator.storage.persisted()) return true; try { return await navigator.storage.persist(); } catch { return false; } }; })(window.App.Infrastructure);