diff --git a/IntroSkipper/Configuration/PluginConfiguration.cs b/IntroSkipper/Configuration/PluginConfiguration.cs index 3bcf221..647c220 100644 --- a/IntroSkipper/Configuration/PluginConfiguration.cs +++ b/IntroSkipper/Configuration/PluginConfiguration.cs @@ -227,7 +227,7 @@ public class PluginConfiguration : BasePluginConfiguration /// /// Gets or sets the amount of intro to play (in seconds). /// - public int RemainingSecondsOfIntro { get; set; } = 2; + public int RemainingSecondsOfIntro { get; set; }; /// /// Gets or sets the amount of intro at start to play (in seconds). diff --git a/IntroSkipper/Configuration/configPage.html b/IntroSkipper/Configuration/configPage.html index fb6c2b9..e0ea105 100644 --- a/IntroSkipper/Configuration/configPage.html +++ b/IntroSkipper/Configuration/configPage.html @@ -935,6 +935,8 @@ persistSkip.addEventListener("change", persistSkipChanged); + var remainingSecondsOfIntro = document.getElementById("RemainingSecondsOfIntro") + async function pluginSkipSettingChanged() { if (pluginSkip.checked) { serverSkipSettings.style.display = "unset"; @@ -944,6 +946,7 @@ autoSkip.checked = false; skipButtonVisible.checked = false; persistSkip.checked = false; + remainingSecondsOfIntro.value = 0; } }