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