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',