Made the extension successfully build

This commit is contained in:
Ajay Ramachandran
2020-02-01 19:18:53 -05:00
parent 17381e7deb
commit 23141aa624
11 changed files with 117 additions and 132 deletions

View File

@@ -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