From dd25e64134335cb5b19077d32ed3d66dfa9a80ef Mon Sep 17 00:00:00 2001 From: Deathamns Date: Thu, 18 Dec 2014 21:24:11 +0100 Subject: [PATCH] Firefox: revert previous change Initializing the extension with AddonManager takes too long (at least for this extension). When starting the browser, tabs loaded before the extension could, and because of that, blocking didn't work. It works better, if it's initialized when the window's DOM is ready. --- platform/firefox/vapi-background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 4afb30e..dc24fd9 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -43,10 +43,10 @@ vAPI.firefox = true; /******************************************************************************/ -vAPI.app = location.hash.slice(1).split(','); +// TODO: read these data from somewhere... vAPI.app = { - name: vAPI.app[0], - version: vAPI.app[1] + name: 'µBlock', + version: '0.8.2.0' }; /******************************************************************************/