aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/background.ts
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-12-12 19:07:15 -0500
committerAjay Ramachandran <[email protected]>2020-12-12 19:07:15 -0500
commita150a979911f427ad1d5329e7dd634c7463b2235 (patch)
tree64171a6d04c7d8f7537417b19b9d1b2b2efce415 /src/background.ts
parent637dcbee00e8356fbfcbe9aefe2202642e5f93d3 (diff)
downloadSponsorBlock-a150a979911f427ad1d5329e7dd634c7463b2235.tar.gz
SponsorBlock-a150a979911f427ad1d5329e7dd634c7463b2235.zip
Add matrix link and fix help button
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 ec398d59..03afea42 100644
--- a/src/background.ts
+++ b/src/background.ts
@@ -31,6 +31,9 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) {
case "openConfig":
chrome.runtime.openOptionsPage();
return;
+ case "openHelp":
+ window.open(chrome.runtime.getURL('help/index_en.html'));
+ return;
case "sendRequest":
sendRequestToCustomServer(request.type, request.url, request.data).then(async (response) => {
callback({