diff --git a/Website/interaction.js b/Website/interaction.js index 673c7be..fea905b 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -83,12 +83,12 @@ function Setup(){ settingDownloadLocation.innerText = json.downloadLocation; settingApiUri.placeholder = apiUri; console.log(json.styleSheet); - if (json.styleSheet == 'default') { - settingMangaHoverCheckbox.checked = false; - document.getElementById('pagestyle').setAttribute('href', 'styles/style_default.css'); - } else { + if (json.styleSheet == 'hover') { settingMangaHoverCheckbox.checked = true; document.getElementById('pagestyle').setAttribute('href', 'styles/style_mangahover.css'); + } else { + settingMangaHoverCheckbox.checked = false; + document.getElementById('pagestyle').setAttribute('href', 'styles/style_default.css'); } }); setInterval(() => { @@ -292,12 +292,12 @@ function OpenSettings(){ settingDownloadLocation.innerText = json.downloadLocation; settingApiUri.placeholder = apiUri; console.log(json.styleSheet); - if (json.styleSheet == 'default') { - settingMangaHoverCheckbox.checked = false; - document.getElementById('pagestyle').setAttribute('href', 'styles/style_default.css'); - } else { + if (json.styleSheet == 'hover') { settingMangaHoverCheckbox.checked = true; document.getElementById('pagestyle').setAttribute('href', 'styles/style_mangahover.css'); + } else { + settingMangaHoverCheckbox.checked = false; + document.getElementById('pagestyle').setAttribute('href', 'styles/style_default.css'); } }); GetLibraryConnectors().then((json) => {