aboutsummaryrefslogtreecommitdiffhomepage
path: root/content.js
diff options
context:
space:
mode:
Diffstat (limited to 'content.js')
-rw-r--r--content.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/content.js b/content.js
index f0ca78d0..fb0b13b0 100644
--- a/content.js
+++ b/content.js
@@ -240,12 +240,12 @@ function videoIDChange(id) {
resetValues();
- let channelIDPromise = wait(getChannelID);
- channelIDPromise.then(() => channelIDPromise.isFulfilled = true).catch(() => channelIDPromise.isRejected = true)
-
//id is not valid
if (!id) return;
+ let channelIDPromise = wait(getChannelID);
+ channelIDPromise.then(() => channelIDPromise.isFulfilled = true).catch(() => channelIDPromise.isRejected = true);
+
//setup the preview bar
if (previewBar == null) {
//create it