Permalink
Browse files

There is no error property on the XHR event in general.

  • Loading branch information...
michaellperry committed Oct 23, 2018
1 parent 1241a0a commit 53878ca6652f0ad547588ec04d6880b26493c332
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/http/web-client.ts
@@ -25,7 +25,7 @@ function createXHR(method: string, path: string, resolve: (result: any) => void,
}
};
xhr.onerror = (event) => {
reject(event.error.message);
reject('Network request failed.');
};
xhr.setRequestHeader('Accept', 'application/json');
return xhr;

0 comments on commit 53878ca

Please sign in to comment.