From 5e6f118a134530ec0b7d64301f6d92bbd367555a Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Fri, 1 Dec 2023 21:23:44 -0700 Subject: [PATCH] Add debug option to detect panel for app issue (#27) Hoping this will help figure out why doods calls don't work when android app is compiled. Signed-off-by: Justin Georgi Reviewed-on: https://gitea.azgeorgis.net/Georgi_Lab/ALVINN_f7/pulls/27 --- 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)