From 3adcb7ae1654928a8a86de4cf329dcd912bcbb33 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Thu, 24 Sep 2015 11:25:45 +0000 Subject: 3.0.1. Fix Firefox disabling issues, simplify the chrome api shim, make things a bit more robust --- js/firefox/extension-storage.jsm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/firefox/extension-storage.jsm') 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); -- cgit v1.2.3