From 896c4e7561e6692489c5c4ed9a11987b861aa0ea Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Fri, 8 Nov 2019 00:52:45 +0530 Subject: [PATCH] :bug: Fixed broken syntax highlighting --- pages/index.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 937e0d4e9..1411528b3 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -762,8 +762,7 @@ export default { } else if ( responseText && this.response.body !== "(waiting to send request)" && - this.response.body !== "Loading..." && - this.response.body.indexOf("console") == -1 + this.response.body !== "Loading..." ) { responseText.innerText = this.responseType === "application/json" || @@ -1375,7 +1374,7 @@ export default { return; } else { this.response.status = error.message; - this.response.body = error + "\nCheck console for details."; + this.response.body = error + ". Check console for details."; this.$toast.error(error + " (F12 for details)", { icon: "error" });