feat: theme files are now loaded & applied on startup

This commit is contained in:
2023-05-10 22:07:11 +02:00
parent a408a6a8cc
commit 1761c8dd40
5 changed files with 29 additions and 12 deletions

View File

@@ -66,7 +66,7 @@ function handleFileUploads() {
function refreshSettings() {
adBlock.checked = settingsStore.get(settings.adBlock);
api.checked = settingsStore.get(settings.api);
customCSS.value = settingsStore.get(settings.customCSS);
customCSS.value = settingsStore.get<string, string[]>(settings.customCSS).join("\n");
disableBackgroundThrottle.checked = settingsStore.get(settings.disableBackgroundThrottle);
disableHardwareMediaKeys.checked = settingsStore.get(settings.flags.disableHardwareMediaKeys);
enableCustomHotkeys.checked = settingsStore.get(settings.enableCustomHotkeys);