diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js index fc858a0..dfc6c6c 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js @@ -173,7 +173,7 @@ introSkipper.injectButton = async function () { /** Playback position changed, check if the skip button needs to be displayed. */ introSkipper.videoPositionChanged = function () { // Ensure a skip segment was found. - if (!introSkipper.skipSegments?.Valid) { + if (!introSkipper.skipSegments || !introSkipper.skipSegments.Valid) { return; }