Update inject.js

This commit is contained in:
rlauuzo 2024-08-02 10:36:56 +02:00 committed by GitHub
parent 82cabf7fc0
commit 50ea8955d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -195,7 +195,7 @@ const introSkipper = {
videoPositionChanged() {
if (!this.skipButton) return;
const embyButton = this.skipButton.querySelector(".emby-button");
const segmentType = introSkipper.getCurrentSegment(this.videoPlayer.currentTime).SegmentType;
const segmentType = this.getCurrentSegment(this.videoPlayer.currentTime).SegmentType;
if (segmentType === "None") {
if (!this.skipButton.classList.contains('show')) return;
this.skipButton.classList.remove('show');