From 40cddbf8ee1165355f4789da3c5be9de615995ea Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 8 Feb 2020 23:28:41 -0500 Subject: [PATCH] Disabling auto skip now enables the notice. --- src/options.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/options.ts b/src/options.ts index 1ce1f05a..1836c6c3 100644 --- a/src/options.ts +++ b/src/options.ts @@ -50,6 +50,16 @@ async function init() { switch (option) { case "supportInvidious": invidiousOnClick(checkbox, option); + break; + case "disableAutoSkip": + if (!checkbox.checked) { + // Enable the notice + Config.config["dontShowNotice"] = false; + + let showNoticeSwitch = document.querySelector("[sync-option='dontShowNotice'] > label > label > input"); + showNoticeSwitch.checked = true; + } + break; } });