aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/options.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.ts')
-rw-r--r--src/options.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/options.ts b/src/options.ts
index 1ce1f05a..1836c6c3 100644
--- a/src/options.ts
+++ b/src/options.ts
@@ -51,6 +51,16 @@ async function init() {
case "supportInvidious":
invidiousOnClick(checkbox, option);
break;
+ case "disableAutoSkip":
+ if (!checkbox.checked) {
+ // Enable the notice
+ Config.config["dontShowNotice"] = false;
+
+ let showNoticeSwitch = <HTMLInputElement> document.querySelector("[sync-option='dontShowNotice'] > label > label > input");
+ showNoticeSwitch.checked = true;
+ }
+
+ break;
}
});
break;