mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 09:46:29 +02:00
Merge pull request #118 from kasenvr/feature/js-doc-night
APIDocs theme toggle bugfix
This commit is contained in:
commit
96ecf39e3d
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