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:
parent
feea508a8e
commit
3ce0d0aded
|
@ -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]
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue