Fixes after merge broke some stuff

This commit is contained in:
db-2001
2023-10-29 22:24:16 -04:00
parent 5698c93439
commit 1f3ed66f97
2 changed files with 19 additions and 31 deletions

View File

@ -82,10 +82,10 @@ function Setup(){
ResetContent();
UpdateJobs();
GetSettings().then((json) => {
console.log(json);
//console.log(json);
settingDownloadLocation.innerText = json.downloadLocation;
settingApiUri.placeholder = apiUri;
console.log(json.styleSheet);
//console.log(json.styleSheet);
if (json.styleSheet == 'hover') {
settingMangaHoverCheckbox.checked = true;
document.getElementById('pagestyle').setAttribute('href', 'styles/style_mangahover.css');
@ -299,7 +299,7 @@ function OpenSettings(){
//console.log(json);
settingDownloadLocation.innerText = json.downloadLocation;
settingApiUri.placeholder = apiUri;
console.log(json.styleSheet);
//console.log(json.styleSheet);
if (json.styleSheet == 'hover') {
settingMangaHoverCheckbox.checked = true;
document.getElementById('pagestyle').setAttribute('href', 'styles/style_mangahover.css');
@ -368,10 +368,10 @@ function UpdateSettings(){
// If the checkbox is checked, set the style to style_mangahover.css and
if (document.getElementById("mangaHoverCheckbox").checked == true){
ChangeStyleSheet('hover')
console.log('Changing theme to mangahover')
//console.log('Changing theme to mangahover')
} else {
ChangeStyleSheet('default');
console.log('Changing theme to default')
//console.log('Changing theme to default')
}
if(settingKomgaUrl.value != "" &&