Browse Source

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.
pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
3ce0d0aded
  1. 5
      platform/firefox/vapi-background.js

5
platform/firefox/vapi-background.js

@ -43,9 +43,10 @@ vAPI.firefox = true;
/******************************************************************************/ /******************************************************************************/
vAPI.app = location.hash.slice(1).split(',');
vAPI.app = { vAPI.app = {
name: 'µBlock',
version: '0.8.2.0'
name: vAPI.app[0],
version: vAPI.app[1]
}; };
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save