From d1ba767effeb0029464745d59fce09bfd0e35677 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 15 Mar 2021 23:10:31 +1300 Subject: [PATCH] debug --- html/src/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: [],