Index: remoting/webapp/crd/js/xhr.js |
diff --git a/remoting/webapp/crd/js/xhr.js b/remoting/webapp/crd/js/xhr.js |
index 0551bdca3be439f0e620eddae9d9a05144d6f200..dd49a2911c36b01e8e5a0c7ca2ed44ed8bf5503c 100644 |
--- a/remoting/webapp/crd/js/xhr.js |
+++ b/remoting/webapp/crd/js/xhr.js |
@@ -208,12 +208,12 @@ remoting.xhr.defaultResponse = function(onDone, onError, opt_ignoreErrors) { |
var result = function(xhr) { |
var error = |
remoting.Error.fromHttpStatus(/** @type {number} */ (xhr.status)); |
- if (!error.isError()) { |
+ if (error.isNone()) { |
onDone(); |
return; |
} |
- if (opt_ignoreErrors && opt_ignoreErrors.indexOf(error.tag) !== -1) { |
+ if (opt_ignoreErrors && error.hasAnyTag(opt_ignoreErrors)) { |
onDone(); |
return; |
} |