aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--popup.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/popup.js b/popup.js
index d1186984..96302742 100644
--- a/popup.js
+++ b/popup.js
@@ -123,26 +123,6 @@ function runThePopup() {
}
});
- //see if whitelist button should be swapped
- chrome.tabs.query({
- active: true,
- currentWindow: true
- }, tabs => {
- chrome.tabs.sendMessage(
- tabs[0].id,
- {message: 'isChannelWhitelisted'},
- function(response) {
- if (response.value) {
- SB.whitelistChannel.style.display = "none";
- SB.unwhitelistChannel.style.display = "unset";
-
- SB.downloadedSponsorMessageTimes.innerText = "Channel Whitelisted!";
- SB.downloadedSponsorMessageTimes.style.fontWeight = "bold";
- }
- });
- }
- );
-
//if the don't show notice again letiable is true, an option to
// disable should be available
chrome.storage.sync.get(["dontShowNoticeAgain"], function(result) {
@@ -292,6 +272,26 @@ function runThePopup() {
SB.videoFound.innerHTML = "No sponsors found"
}
}
+
+ //see if whitelist button should be swapped
+ chrome.tabs.query({
+ active: true,
+ currentWindow: true
+ }, tabs => {
+ chrome.tabs.sendMessage(
+ tabs[0].id,
+ {message: 'isChannelWhitelisted'},
+ function(response) {
+ if (response.value) {
+ SB.whitelistChannel.style.display = "none";
+ SB.unwhitelistChannel.style.display = "unset";
+
+ SB.downloadedSponsorMessageTimes.innerText = "Channel Whitelisted!";
+ SB.downloadedSponsorMessageTimes.style.fontWeight = "bold";
+ }
+ });
+ }
+ );
}
function setVideoID(request) {