From a9a56d272f30bc4276fe8d958a5c514eab2fd928 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 14 Sep 2016 10:55:24 -0700 Subject: [PATCH] fix: use fetch(about://blank) to prevent exception on MS Edge Closes #436 Closes #439 --- lib/zone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zone.ts b/lib/zone.ts index f37d3903e..69393ab65 100644 --- a/lib/zone.ts +++ b/lib/zone.ts @@ -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) {