aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/background.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-01-21 13:51:32 -0500
committerAjay <[email protected]>2024-01-21 13:51:32 -0500
commit783326afcaf24be91d1aa02e2f1c015342f32754 (patch)
treee4a76047ab99f1e91481617be774e566c042f24c /src/background.ts
parent8dfd06919b09a353def609cdca5c48a74a34d8ca (diff)
downloadSponsorBlock-783326afcaf24be91d1aa02e2f1c015342f32754.tar.gz
SponsorBlock-783326afcaf24be91d1aa02e2f1c015342f32754.zip
Use runtime.getURL
Diffstat (limited to 'src/background.ts')
-rw-r--r--src/background.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/background.ts b/src/background.ts
index 99df62db..161ee45a 100644
--- a/src/background.ts
+++ b/src/background.ts
@@ -123,7 +123,7 @@ chrome.runtime.onInstalled.addListener(function () {
// If there is no userID, then it is the first install.
if (!userID && !Config.local.alreadyInstalled){
//open up the install page
- chrome.tabs.create({url: chrome.extension.getURL("/help/index.html")});
+ chrome.tabs.create({url: chrome.runtime.getURL("/help/index.html")});
//generate a userID
const newUserID = generateUserID();
@@ -137,7 +137,7 @@ chrome.runtime.onInstalled.addListener(function () {
if (Config.config.supportInvidious) {
if (!(await utils.containsInvidiousPermission())) {
- chrome.tabs.create({url: chrome.extension.getURL("/permissions/index.html")});
+ chrome.tabs.create({url: chrome.runtime.getURL("/permissions/index.html")});
}
}
}, 1500);