From 297c95ac6b9b56fdc3f70c485c2b133c9d4f647c Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Mon, 13 Jan 2020 19:52:54 +0000 Subject: [PATCH] Added inPopup check for options button --- popup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/popup.js b/popup.js index 7be8235d..f8958050 100644 --- a/popup.js +++ b/popup.js @@ -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