Remove unused FIREFOX_NO_DOM_STORAGE
This commit is contained in:
parent
829a134ed1
commit
56b737b65a
|
@ -1,5 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
if (typeof localStorage === 'object' && localStorage) {
|
|
||||||
localStorage._BG_ACCESS = 1;
|
|
||||||
}
|
|
|
@ -97,13 +97,6 @@ if (!BG || BG !== window) {
|
||||||
BG.API_METHODS = {};
|
BG.API_METHODS = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const FIREFOX_NO_DOM_STORAGE = FIREFOX && !tryCatch(() => localStorage && localStorage._BG_ACCESS);
|
|
||||||
if (FIREFOX_NO_DOM_STORAGE) {
|
|
||||||
// may be disabled via dom.storage.enabled
|
|
||||||
Object.defineProperty(window, 'localStorage', {value: {}});
|
|
||||||
Object.defineProperty(window, 'sessionStorage', {value: {}});
|
|
||||||
}
|
|
||||||
|
|
||||||
// eslint-disable-next-line no-var
|
// eslint-disable-next-line no-var
|
||||||
var API = (() => {
|
var API = (() => {
|
||||||
return new Proxy(() => {}, {
|
return new Proxy(() => {}, {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* global prefs: true, contextMenus, FIREFOX_NO_DOM_STORAGE */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// eslint-disable-next-line no-var
|
// eslint-disable-next-line no-var
|
||||||
|
|
Loading…
Reference in New Issue
Block a user