From dc91cd9973fede79eb71d9bccba8c145906838ca Mon Sep 17 00:00:00 2001 From: pypy Date: Mon, 13 Jan 2020 00:51:00 +0900 Subject: [PATCH] bugfix --- html/app.js | 4 +--- html/vr.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/html/app.js b/html/app.js index c3cfcd9d..11432c5d 100644 --- a/html/app.js +++ b/html/app.js @@ -295,9 +295,7 @@ CefSharp.BindObjectAsync( } this.$throw(res.status); }).then((json) => { - if (isObject(json) === false) { - this.$throw(0, 'Invalid JSON response'); - } else if (res.ok) { + if (res.ok) { if (isObject(json.success)) { new Noty({ type: 'success', diff --git a/html/vr.js b/html/vr.js index 83fafb7c..6cac3746 100644 --- a/html/vr.js +++ b/html/vr.js @@ -241,9 +241,7 @@ CefSharp.BindObjectAsync( } this.$throw(res.status); }).then((json) => { - if (isObject(json) === false) { - this.$throw(0, 'Invalid JSON response'); - } else if (res.ok) { + if (res.ok) { if (isObject(json.success)) { new Noty({ type: 'success',