mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Fix invidious support for thumbnail labels
This commit is contained in:
@@ -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();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user