diff options
author | Ajay Ramachandran <[email protected]> | 2019-09-02 10:54:49 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2019-09-02 10:54:49 -0400 |
commit | 7deea5d64876a13a7b10ab2f7f2c2278c0d78c30 (patch) | |
tree | 844f89ac027aa1c34a56386ff2c07f61dbae110b /content.js | |
parent | f310c53f88ada2cb4db001b8f6833a3d659126b1 (diff) | |
download | SponsorBlock-7deea5d64876a13a7b10ab2f7f2c2278c0d78c30.tar.gz SponsorBlock-7deea5d64876a13a7b10ab2f7f2c2278c0d78c30.zip |
Made getChannelID only get called if there is a valid YouTube page.
Diffstat (limited to 'content.js')
-rw-r--r-- | content.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |