aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-02-08 23:28:41 -0500
committerAjay Ramachandran <[email protected]>2020-02-08 23:28:41 -0500
commit40cddbf8ee1165355f4789da3c5be9de615995ea (patch)
treeadfbfe2a561a2b9218e40946e567a4879ba83448
parent9026044528b4dc63d06a5e1611f9b5e1ab575207 (diff)
downloadSponsorBlock-40cddbf8ee1165355f4789da3c5be9de615995ea.tar.gz
SponsorBlock-40cddbf8ee1165355f4789da3c5be9de615995ea.zip
Disabling auto skip now enables the notice.
-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;