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
|
@ -10,6 +10,7 @@
|
|||
const persistentRndStorage = require("./persistentRndStorage");
|
||||
const notification = require("./notification");
|
||||
const mobile = require("./mobile");
|
||||
const extension = require("./extension");
|
||||
|
||||
const registerSettingsContentScript = (function(){
|
||||
let unregisterSettingsContentScript = function(){};
|
||||
|
@ -161,7 +162,7 @@
|
|||
!browser.pageAction.openPopup
|
||||
){
|
||||
browser.tabs.create({
|
||||
url: browser.extension.getURL("options/options.html?notice=" + reason)
|
||||
url: extension.getURL("options/options.html?notice=" + reason)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -170,7 +171,7 @@
|
|||
logging.message("CanvasBlocker installed");
|
||||
openOptions(details.reason);
|
||||
browser.tabs.create({
|
||||
url: browser.extension.getURL("options/presets.html?notice=" + details.reason)
|
||||
url: extension.getURL("options/presets.html?notice=" + details.reason)
|
||||
});
|
||||
break;
|
||||
case "update":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue