We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c265ea4 commit 0e7bc34Copy full SHA for 0e7bc34
utils.js
@@ -187,6 +187,24 @@ window.addEventListener('online', () => { isOffline = false });
187
window.addEventListener('offline', () => { isOffline = true });
188
189
190
+// persistent storage
191
+
192
+let isPersistStorage = false;
193
194
+if (navigator.storage && navigator.storage.persist) {
195
196
+ isPersistStorage = await navigator.storage.persisted();
197
198
+ if (!isPersistStorage) {
199
200
+ // request persistent storage
201
+ isPersistStorage = await navigator.storage.persist();
202
203
+ }
204
205
+}
206
207
208
// base64 encode/decode
209
210
let encodeUnicode = (str) => {
0 commit comments