1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-01 18:10:17 +12:00

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.
This commit is contained in:
Deathamns 2014-12-18 14:43:34 +01:00 committed by gorhill
parent feea508a8e
commit 3ce0d0aded

View file

@ -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]
};
/******************************************************************************/