From d3729a9a3843b3d5c007c4f4a5be6d582f19c002 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Fri, 1 Dec 2023 21:21:40 -0700 Subject: [PATCH] Add debug option to detect panel for app issue Signed-off-by: Justin Georgi --- src/pages/detect.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/detect.vue b/src/pages/detect.vue index b0f9f27..b0bdcf6 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -45,7 +45,11 @@ + + + + @@ -185,7 +189,9 @@ level: 50, filter: [] }, - serverSettings: {} + serverSettings: {}, + debugOn: true, + debugText: '' } }, created () { @@ -219,6 +225,7 @@ xhr.open("GET", modelURL) xhr.setRequestHeader('Content-Type', 'application/json') xhr.onload = function () { + if (self.debugOn) self.debugText = this.response //DEBUG ANDROID BUILD if (this.status !== 200) { //this.response.text().then(function(message){alert(message)}) console.log(this.response) @@ -248,6 +255,7 @@ xhr.open("POST", modelURL) xhr.setRequestHeader('Content-Type', 'application/json') xhr.onload = function () { + if (self.debugOn) self.debugText = this.response //DEBUG ANDROID BUILD if (this.status !== 200) { //this.response.text().then(function(message){alert(message)}) console.log(this.response) -- 2.49.1