From 783326afcaf24be91d1aa02e2f1c015342f32754 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 21 Jan 2024 13:51:32 -0500 Subject: Use runtime.getURL --- src/background.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/background.ts') 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); -- cgit v1.2.3