Added inPopup check for options button

This commit is contained in:
Official Noob
2020-01-13 19:52:54 +00:00
committed by GitHub
parent ced3100b4e
commit 297c95ac6b

View File

@@ -831,7 +831,11 @@ async function runThePopup() {
//make the options div visible
function openOptions() {
chrome.runtime.openOptionsPage();
if(inPopup) {
chrome.runtime.openOptionsPage();
} else {
chrome.runtime.sendMessage({"message": "openConfig"});
}
}
//make the options username setting option visible