aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-03-17 23:41:59 -0400
committerAjay <[email protected]>2023-03-17 23:41:59 -0400
commit2374f4d31b7df6ada17aeb02e9037dc9df95a544 (patch)
tree4b867307e5bb9d4bc4ac6687984eb640fb0f468f /src
parent52f58b8ea481af92360c7fb783b7f44023600fdc (diff)
downloadSponsorBlock-2374f4d31b7df6ada17aeb02e9037dc9df95a544.tar.gz
SponsorBlock-2374f4d31b7df6ada17aeb02e9037dc9df95a544.zip
Fix invidious support for thumbnail labels
Diffstat (limited to 'src')
-rw-r--r--src/utils/thumbnails.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/thumbnails.ts b/src/utils/thumbnails.ts
index 4aec8d39..e78eb9c5 100644
--- a/src/utils/thumbnails.ts
+++ b/src/utils/thumbnails.ts
@@ -114,7 +114,7 @@ export function setupThumbnailPageLoadListener(): void {
insertSBIconDefinition();
// Label thumbnails on load if on Invidious (wait for variable initialization before checking)
- waitFor(() => isOnInvidious() !== undefined).then(() => {
+ waitFor(() => isOnInvidious() !== null).then(() => {
if (isOnInvidious()) newThumbnails();
});
};