mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-29 13:50:50 +03:00
Made the extension successfully build
This commit is contained in:
@@ -427,13 +427,13 @@ function getYouTubeVideoID(url: string) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//Check if valid hostname
|
||||
// Check if valid hostname
|
||||
if (SB.config && SB.config.invidiousInstances.includes(urlObject.host)) {
|
||||
onInvidious = true;
|
||||
} else if (!["www.youtube.com", "www.youtube-nocookie.com"].includes(urlObject.host)) {
|
||||
if (!SB.config) {
|
||||
// Call this later, in case this is an Invidious tab
|
||||
this.wait(() => SB.config !== undefined).then(() => this.videoIDChange(this.getYouTubeVideoID(url)));
|
||||
this.wait(() => SB.config !== null).then(() => this.videoIDChange(this.getYouTubeVideoID(url)));
|
||||
}
|
||||
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user