Skip to content

Commit

Permalink
Remove unused FIREFOX_NO_DOM_STORAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Oct 4, 2018
1 parent 829a134 commit 56b737b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions background/util.js

This file was deleted.

7 changes: 0 additions & 7 deletions js/messaging.js
Expand Up @@ -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(() => {}, {
Expand Down
1 change: 0 additions & 1 deletion js/prefs.js
@@ -1,4 +1,3 @@
/* global prefs: true, contextMenus, FIREFOX_NO_DOM_STORAGE */
'use strict';

// eslint-disable-next-line no-var
Expand Down

0 comments on commit 56b737b

Please sign in to comment.