Browse Source

[RN] Polyfill sessionStorage via Storage

j8
Lyubo Marinov 8 years ago
parent
commit
5e6cea63fb
1 changed files with 1 additions and 16 deletions
  1. 1
    16
      react/features/base/lib-jitsi-meet/native/polyfills-browser.js

+ 1
- 16
react/features/base/lib-jitsi-meet/native/polyfills-browser.js View File

333
     // - herment
333
     // - herment
334
     // - Strophe
334
     // - Strophe
335
     if (typeof global.sessionStorage === 'undefined') {
335
     if (typeof global.sessionStorage === 'undefined') {
336
-        let internalStorage = {};
337
-
338
-        global.sessionStorage = {
339
-            clear() {
340
-                internalStorage = {};
341
-            },
342
-            getItem(key) {
343
-                return internalStorage[key];
344
-            },
345
-            removeItem(key) {
346
-                delete internalStorage[key];
347
-            },
348
-            setItem(key, value) {
349
-                internalStorage[key] = value;
350
-            }
351
-        };
336
+        global.sessionStorage = new Storage();
352
     }
337
     }
353
 
338
 
354
     // WebRTC
339
     // WebRTC

Loading…
Cancel
Save