From 4f56a847d78313e4e91c4bbc559a6deff8ab3f7c Mon Sep 17 00:00:00 2001 From: Kasen IO Date: Fri, 24 Jan 2020 08:16:13 -0500 Subject: [PATCH] Bugfix for init val. --- tools/jsdoc/hifi-jsdoc-template/tmpl/layout.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/jsdoc/hifi-jsdoc-template/tmpl/layout.tmpl b/tools/jsdoc/hifi-jsdoc-template/tmpl/layout.tmpl index 271211b8fa..7093109ae1 100644 --- a/tools/jsdoc/hifi-jsdoc-template/tmpl/layout.tmpl +++ b/tools/jsdoc/hifi-jsdoc-template/tmpl/layout.tmpl @@ -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() {