Fix invidious support for thumbnail labels

This commit is contained in:
Ajay
2023-03-17 23:41:59 -04:00
parent 52f58b8ea4
commit 2374f4d31b
4 changed files with 10 additions and 9 deletions

View File

@@ -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();
});
};