From 4ecd02510b320b731e408ca40488c339052b0a0e Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 24 May 2024 03:22:07 -0400 Subject: Fix warnings --- src/content.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/content.ts b/src/content.ts index 873c52dc..226caba7 100644 --- a/src/content.ts +++ b/src/content.ts @@ -34,7 +34,7 @@ import { ChapterVote } from "./render/ChapterVote"; import { openWarningDialog } from "./utils/warnings"; import { isFirefoxOrSafari, waitFor } from "../maze-utils/src"; import { getErrorMessage, getFormattedTime } from "../maze-utils/src/formating"; -import { getChannelIDInfo, getVideo, getIsAdPlaying, getIsLivePremiere, setIsAdPlaying, checkVideoIDChange, getVideoID, getYouTubeVideoID, setupVideoModule, checkIfNewVideoID, isOnInvidious, isOnMobileYouTube, parseYouTubeVideoIDFromURL, getLastNonInlineVideoID, triggerVideoIDChange, triggerVideoElementChange, getIsInline } from "../maze-utils/src/video"; +import { getChannelIDInfo, getVideo, getIsAdPlaying, getIsLivePremiere, setIsAdPlaying, checkVideoIDChange, getVideoID, getYouTubeVideoID, setupVideoModule, checkIfNewVideoID, isOnInvidious, isOnMobileYouTube, getLastNonInlineVideoID, triggerVideoIDChange, triggerVideoElementChange, getIsInline } from "../maze-utils/src/video"; import { Keybind, StorageChangesObject, isSafari, keybindEquals, keybindToString } from "../maze-utils/src/config"; import { findValidElement } from "../maze-utils/src/dom" import { getHash, HashedValue } from "../maze-utils/src/hash"; @@ -131,9 +131,6 @@ setupVideoModule({ }, () => Config); setupThumbnailListener(); -//the video id of the last preview bar update -let lastPreviewBarUpdate: VideoID; - // Is the video currently being switched let switchingVideos = null; @@ -1416,9 +1413,6 @@ function updatePreviewBar(): void { showTimeWithoutSkips(skippedDuration); } - - // Update last video id - lastPreviewBarUpdate = getVideoID(); } //checks if this channel is whitelisted, should be done only after the channelID has been loaded -- cgit v1.2.3