using isObject() instead of typeof

This commit is contained in:
pypy
2020-01-11 22:55:35 +09:00
parent 9fbac82505
commit c0f66ac064
2 changed files with 9 additions and 8 deletions

View File

@@ -255,7 +255,7 @@ if (window.CefSharp) {
text: escapeTag(json.success.message)
}).show();
}
} else if (typeof json.error === 'object') {
} else if (isObject(json.error)) {
this.$throw(
json.error.status_code || res.status,
json.error.message,