Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix: use fetch(about://blank) to prevent exception on MS Edge (#442)
Browse files Browse the repository at this point in the history
Closes #436
Closes #439
  • Loading branch information
mhevery authored Sep 14, 2016
1 parent 4c8a155 commit 8b81537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ const Zone: ZoneType = (function(global: any) {
if (NativePromise) {
patchThen(NativePromise);
if (typeof global['fetch'] !== 'undefined') {
const fetchPromise = global['fetch']();
const fetchPromise = global['fetch']('about:blank');
// ignore output to prevent error;
fetchPromise.then(() => null, () => null);
if (fetchPromise.constructor != NativePromise) {
Expand Down

0 comments on commit 8b81537

Please sign in to comment.