From 3ce0d0aded04f98d1c3c7599e391c2e9216568ba Mon Sep 17 00:00:00 2001 From: Deathamns Date: Thu, 18 Dec 2014 14:43:34 +0100 Subject: [PATCH] Firefox,Safari: fill vAPI.app in a different way Pass the extension data (name and version) as the fragment of the URL for the background script, so vAPI.app can be filled without using XHR to read the manifest files. --- platform/firefox/vapi-background.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 5481723..4afb30e 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -43,9 +43,10 @@ vAPI.firefox = true; /******************************************************************************/ +vAPI.app = location.hash.slice(1).split(','); vAPI.app = { - name: 'µBlock', - version: '0.8.2.0' + name: vAPI.app[0], + version: vAPI.app[1] }; /******************************************************************************/