aboutsummaryrefslogtreecommitdiff
path: root/js/firefox/background-shim.js
diff options
context:
space:
mode:
authorEinar Egilsson <einar@einaregilsson.com>2016-02-22 11:13:53 +0000
committerEinar Egilsson <einar@einaregilsson.com>2016-02-22 11:13:53 +0000
commit4320359ef8dae668f9916c5db1e7de8efab8aa8d (patch)
tree8b7df77fc09de35444ee692b96dc5a577e6381fd /js/firefox/background-shim.js
parent18ff916419996e991fd5679b74850938182495fa (diff)
Use built in ExtensionStorage module
Diffstat (limited to 'js/firefox/background-shim.js')
-rw-r--r--js/firefox/background-shim.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/firefox/background-shim.js b/js/firefox/background-shim.js
index 3551e48..d937104 100644
--- a/js/firefox/background-shim.js
+++ b/js/firefox/background-shim.js
@@ -68,8 +68,8 @@ migrateFromOlderVersion();
function makeUrl(relativeUrl) {
return self.data.url(relativeUrl).replace('/data/', '/');
}
-//Get the extension storage from Nightly.
-Cu.import(makeUrl('js/firefox/extension-storage.jsm'));
+
+Cu.import('resource://gre/modules/ExtensionStorage.jsm');
//Create the browser action:
var { ToggleButton } = require("sdk/ui/button/toggle");
@@ -107,7 +107,7 @@ var chrome = {
},
clearCache : function() {
- ExtensionStorage.clearCache();
+ ExtensionStorage.cache.clear();
},
onChanged : {