diff --git a/html/src/app.js b/html/src/app.js index 9d7f8214..7bd19ddc 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -295,7 +295,9 @@ speechSynthesis.getVoices(); API.eventHandlers = new Map(); API.$emit = function (name, ...args) { - // console.log(name, ...args); + if ($app.debug) { + console.log(name, ...args); + } var handlers = this.eventHandlers.get(name); if (typeof handlers === 'undefined') { return; @@ -375,6 +377,9 @@ speechSynthesis.getVoices(); }).then((response) => { try { response.data = JSON.parse(response.data); + if ($app.debug) { + console.log(init, response); + } return response; } catch (e) { } @@ -3601,6 +3606,8 @@ speechSynthesis.getVoices(); setTimeout(() => this.updateLoop(), 500); }; + $app.debug = false; + $app.data.sharedFeed = { gameLog: { wrist: [],