diff --git a/background.js b/background.js index 1f7cdd70..bf7b2a31 100644 --- a/background.js +++ b/background.js @@ -18,6 +18,9 @@ chrome.tabs.onUpdated.addListener(function(tabId) { chrome.runtime.onMessage.addListener(function (request, sender, callback) { switch(request.message) { + case "openConfig": + chrome.runtime.openOptionsPage(); + return case "submitTimes": submitTimes(request.videoID, callback); diff --git a/popup.js b/popup.js index 7be8235d..af594e1b 100644 --- a/popup.js +++ b/popup.js @@ -831,7 +831,7 @@ async function runThePopup() { //make the options div visible function openOptions() { - chrome.runtime.openOptionsPage(); + chrome.runtime.sendMessage({"message": "openConfig"}); } //make the options username setting option visible