mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 12:12:39 +02:00
Bugfix for init val.
This commit is contained in:
parent
2eca2cf10e
commit
4f56a847d7
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@
|
|||
//We are running the check here to preload the theme because it may load the incorrect one first for a split second.
|
||||
var darkDisabled = JSON.parse(localStorage.getItem('darkDisabled'));
|
||||
if (darkDisabled == null) {
|
||||
localStorage.setItem('darkDisabled', JSON.stringify("false"));
|
||||
localStorage.setItem('darkDisabled', JSON.stringify(false));
|
||||
} else {
|
||||
var nightSheet = document.querySelector('[href="styles/night.css"]');
|
||||
nightSheet.disabled = darkDisabled;
|
||||
|
@ -120,7 +120,7 @@
|
|||
|
||||
}),
|
||||
created: function () {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
toggleNightMode: function() {
|
||||
|
|
Loading…
Reference in a new issue