Remove unused FIREFOX_NO_DOM_STORAGE

This commit is contained in:
eight 2018-10-04 18:14:57 +08:00
parent 829a134ed1
commit 56b737b65a
3 changed files with 0 additions and 13 deletions

View File

@ -1,5 +0,0 @@
'use strict';
if (typeof localStorage === 'object' && localStorage) {
localStorage._BG_ACCESS = 1;
}

View File

@ -97,13 +97,6 @@ if (!BG || BG !== window) {
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
var API = (() => {
return new Proxy(() => {}, {

View File

@ -1,4 +1,3 @@
/* global prefs: true, contextMenus, FIREFOX_NO_DOM_STORAGE */
'use strict';
// eslint-disable-next-line no-var