aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-05-24 03:22:07 -0400
committerAjay <[email protected]>2024-05-24 03:22:07 -0400
commit4ecd02510b320b731e408ca40488c339052b0a0e (patch)
tree2a57395ec57d1deddffea6cfcc4e41c1a9f9559d
parent0dbb6474b841e6ad49616f0b28e4a0668fa2e7fe (diff)
downloadSponsorBlock-4ecd02510b320b731e408ca40488c339052b0a0e.tar.gz
SponsorBlock-4ecd02510b320b731e408ca40488c339052b0a0e.zip
Fix warnings
-rw-r--r--src/content.ts8
1 files changed, 1 insertions, 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