mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
Added inPopup check for options button
This commit is contained in:
6
popup.js
6
popup.js
@@ -831,7 +831,11 @@ async function runThePopup() {
|
|||||||
|
|
||||||
//make the options div visible
|
//make the options div visible
|
||||||
function openOptions() {
|
function openOptions() {
|
||||||
chrome.runtime.openOptionsPage();
|
if(inPopup) {
|
||||||
|
chrome.runtime.openOptionsPage();
|
||||||
|
} else {
|
||||||
|
chrome.runtime.sendMessage({"message": "openConfig"});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//make the options username setting option visible
|
//make the options username setting option visible
|
||||||
|
|||||||
Reference in New Issue
Block a user