Merge pull request #244 from OfficialNoob/patch-5

Support options button when not in popup
This commit is contained in:
Ajay Ramachandran
2020-01-19 21:44:03 -05:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -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);

View File

@@ -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