spanish-quizzer

An app to quiz you on Spanish vocabulary and verb conjugations
git clone https://git.ashermorgan.net/spanish-quizzer/
Log | Files | Refs | README

commit d3cc1401985cf07b541426d5d73f341328bd5e30
parent 093054fb151b9a697ad4429988824b70bf79612f
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Mon,  7 Sep 2020 18:50:26 -0700

Implement created lifecycle hook.

Diffstat:
MScripts/Home.js | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/Scripts/Home.js b/Scripts/Home.js @@ -190,7 +190,13 @@ function Load() { return ["", "", "", ""]; } } - } + }, + + // Called when the Vue is created + created: function() { + // Force theme to update + this.darkTheme = null; + }, }); // Unhide hidden divs @@ -200,10 +206,6 @@ function Load() { document.getElementById("quizzer").hidden = false; document.querySelector("footer").hidden = false; - - // Load settings - app.darkTheme = null; // Force theme to update - // Add event Listeners document.addEventListener("click", function (e) { document.getElementById('share').hidden = true;