Bundled output for commit 80b6a1af0d [skip ci]

This commit is contained in:
Gandalf-the-Bot 2017-11-13 16:10:41 +00:00
parent 80b6a1af0d
commit a382c85eb0
3 changed files with 33 additions and 33 deletions

View file

@ -304,7 +304,7 @@ var _8 = function($window, Promise) {
if (xhr.readyState === 4) {
try {
var response = (args.extract !== extract) ? args.extract(xhr, args) : args.deserialize(args.extract(xhr, args))
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status === 304 || FILE_PROTOCOL_REGEX.test(args.url)) {
if (args.extract !== extract || (xhr.status >= 200 && xhr.status < 300) || xhr.status === 304 || FILE_PROTOCOL_REGEX.test(args.url)) {
resolve(cast(args.type, response))
}
else {