Skip to content

Commit

Permalink
fix: use fetch(about://blank) to prevent exception on MS Edge
Browse files Browse the repository at this point in the history
Closes angular#436
Closes angular#439
  • Loading branch information
mhevery committed Sep 14, 2016
1 parent de318ce commit a9a56d2
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 a9a56d2

Please sign in to comment.