You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

polyfills-browser.js 450B

12345678910111213141516171819
  1. import Storage from './Storage';
  2. (global => {
  3. // localStorage
  4. if (typeof global.localStorage === 'undefined') {
  5. global.localStorage = new Storage('@jitsi-meet/');
  6. }
  7. // sessionStorage
  8. //
  9. // Required by:
  10. // - herment
  11. // - Strophe
  12. if (typeof global.sessionStorage === 'undefined') {
  13. global.sessionStorage = new Storage();
  14. }
  15. })(global || window || this); // eslint-disable-line no-invalid-this