mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-13 10:17:39 +01:00
Added "openConfig" message
This commit is contained in:
parent
297c95ac6b
commit
f58a16179a
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@ chrome.tabs.onUpdated.addListener(function(tabId) {
|
||||||
|
|
||||||
chrome.runtime.onMessage.addListener(function (request, sender, callback) {
|
chrome.runtime.onMessage.addListener(function (request, sender, callback) {
|
||||||
switch(request.message) {
|
switch(request.message) {
|
||||||
|
case "openConfig":
|
||||||
|
chrome.runtime.openOptionsPage();
|
||||||
|
return
|
||||||
case "submitTimes":
|
case "submitTimes":
|
||||||
submitTimes(request.videoID, callback);
|
submitTimes(request.videoID, callback);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue