This commit is contained in:
frederikpyt 2020-08-10 15:20:01 +02:00
commit 1428d88716
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
@else @else
<option name="light" value="light">Light</option> <option name="light" value="light">Light</option>
@endif @endif
@if(request()->cookie('mode') == "light") @if(request()->cookie('mode') == "dark")
<option selected name="darkmode" value="dark">Dark</option> <option selected name="darkmode" value="dark">Dark</option>
@else @else
<option name="dark" value="dark">Dark</option> <option name="dark" value="dark">Dark</option>
@ -75,7 +75,7 @@
data: {'darkmode':$darkmodeON}, data: {'darkmode':$darkmodeON},
success:function (data) { success:function (data) {
console.log($darkmodeON); console.log($darkmodeON);
//location.reload(); location.reload();
}, },
error:function (data) { error:function (data) {
console.log(data); console.log(data);