mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-28 05:10:50 +03:00
Made getChannelID only get called if there is a valid YouTube page.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user