Skip to content

Commit b6c3775

Browse files
committed
Fix setup bugs/errors
1 parent fdc3cf1 commit b6c3775

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function isFileWritable($path){
289289
<div class="container">
290290

291291
<div style="margin:auto;margin-top: 30px" class="text-center">
292-
<img class="mb-4" src="../login/official_logo.svg" alt="" width="72" height="72">
292+
<img class="mb-4" src="img/official_logo.svg" alt="" width="72" height="72">
293293
<h1 class="headline h3 mb-2 font-weight-normal">Welcome!</h1>
294294
<h3 class="headline h5 mb-3 font-weight-light">Raspberry Pi Dashboard</h3>
295295
<h5 class="headline text-secondary font-weight-normal">Setup</h5>
@@ -624,9 +624,12 @@ function darkmode(state) {
624624
}
625625
if(localStorage.getItem("darkmode") != null){
626626
darkmode(localStorage.getItem("darkmode"));
627+
document.getElementById(localStorage.getItem("darkmode")).checked="true";
628+
}else{
629+
document.getElementById("false").checked="true";
627630
}
628631

629-
document.getElementById(localStorage.getItem("darkmode")).checked="true";
632+
630633

631634
function checkPw() {
632635
var pw1=document.getElementById("pwinput1").value;

0 commit comments

Comments
 (0)