From 667eea7c8e01e541f5ddf194c933e447d150e9a8 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 23 Nov 2018 19:12:07 +0900 Subject: [PATCH] Minor change --- scripts/Actions/Theme.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Actions/Theme.ts b/scripts/Actions/Theme.ts index e4312a23..b2c81577 100644 --- a/scripts/Actions/Theme.ts +++ b/scripts/Actions/Theme.ts @@ -172,8 +172,10 @@ export function pickColor(arn: AnimeNotifier, element: HTMLElement) { let input = document.createElement("input") input.type = "color" - input.click() + input.oninput = () => { rootStyle.setProperty(variableName, input.value) } + + input.click() }