diff options
Diffstat (limited to 'js/firefox/extension-storage.jsm')
-rw-r--r-- | js/firefox/extension-storage.jsm | 4 |
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); |