aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/background.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background.ts')
-rw-r--r--src/background.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/background.ts b/src/background.ts
index b562c4e7..e44dd28a 100644
--- a/src/background.ts
+++ b/src/background.ts
@@ -37,6 +37,9 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) {
case "openHelp":
chrome.tabs.create({url: chrome.runtime.getURL('help/index_en.html')});
return;
+ case "openPage":
+ chrome.tabs.create({url: chrome.runtime.getURL(request.url)});
+ return;
case "sendRequest":
sendRequestToCustomServer(request.type, request.url, request.data).then(async (response) => {
callback({