mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
Remove usage of deprecated browser.extension.getURL
This commit is contained in:
parent
8a84dd09f3
commit
2a6c564ed8
@ -73,7 +73,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
scope.getURL = function getURL(str){
|
scope.getURL = function getURL(str){
|
||||||
return (browser.runtime.getURL? browser.runtime.getURL: browser.extension.getURL)(str);
|
return browser.runtime.getURL(str);
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.extensionID = browserAvailable? scope.getURL(""): "extensionID";
|
scope.extensionID = browserAvailable? scope.getURL(""): "extensionID";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user