mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-29 13:50: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();
|
resetValues();
|
||||||
|
|
||||||
let channelIDPromise = wait(getChannelID);
|
|
||||||
channelIDPromise.then(() => channelIDPromise.isFulfilled = true).catch(() => channelIDPromise.isRejected = true)
|
|
||||||
|
|
||||||
//id is not valid
|
//id is not valid
|
||||||
if (!id) return;
|
if (!id) return;
|
||||||
|
|
||||||
|
let channelIDPromise = wait(getChannelID);
|
||||||
|
channelIDPromise.then(() => channelIDPromise.isFulfilled = true).catch(() => channelIDPromise.isRejected = true);
|
||||||
|
|
||||||
//setup the preview bar
|
//setup the preview bar
|
||||||
if (previewBar == null) {
|
if (previewBar == null) {
|
||||||
//create it
|
//create it
|
||||||
|
|||||||
Reference in New Issue
Block a user