mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Do not use browser.extension.getURL
This commit is contained in:
parent
6f5cfc1080
commit
7f154c6cc6
6 changed files with 20 additions and 14 deletions
|
@ -30,7 +30,7 @@
|
|||
browser.runtime.openOptionsPage();
|
||||
}
|
||||
else {
|
||||
window.open(browser.extension.getURL("options/options.html"), "_blank");
|
||||
window.open(extension.getURL("options/options.html"), "_blank");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -152,7 +152,7 @@
|
|||
isIcon: true,
|
||||
callback: function({domain, urls}){
|
||||
window.open(
|
||||
browser.extension.getURL(
|
||||
extension.getURL(
|
||||
"options/whitelist.html?domain=" +
|
||||
encodeURIComponent(domain) +
|
||||
"&urls=" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue