aboutsummaryrefslogtreecommitdiff
path: root/js/firefox/extension-storage.jsm
diff options
context:
space:
mode:
authorEinar Egilsson <einar@einaregilsson.com>2015-09-24 11:25:45 +0000
committerEinar Egilsson <einar@einaregilsson.com>2015-09-24 11:25:45 +0000
commit3adcb7ae1654928a8a86de4cf329dcd912bcbb33 (patch)
tree6a992508214e6d6a31af400e5ff8a192203e5fd0 /js/firefox/extension-storage.jsm
parentf432a10a164e9a32f7bb915e5ca8cef5489f3ccd (diff)
3.0.1. Fix Firefox disabling issues, simplify the chrome api shim, make things a bit more robust
Diffstat (limited to 'js/firefox/extension-storage.jsm')
-rw-r--r--js/firefox/extension-storage.jsm4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/firefox/extension-storage.jsm b/js/firefox/extension-storage.jsm
index 02c59a3..f102b6f 100644
--- a/js/firefox/extension-storage.jsm
+++ b/js/firefox/extension-storage.jsm
@@ -36,6 +36,10 @@ this.ExtensionStorage = {
return Path.join(this.extensionDir, extensionId, "storage.js");
},
+ clearCache : function() {
+ this.cache = new Map();
+ },
+
read(extensionId) {
if (this.cache.has(extensionId)) {
return this.cache.get(extensionId);