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

Commit 8b81537

Browse files
authored
fix: use fetch(about://blank) to prevent exception on MS Edge (#442)
Closes #436 Closes #439
1 parent 4c8a155 commit 8b81537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/zone.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ const Zone: ZoneType = (function(global: any) {
11451145
if (NativePromise) {
11461146
patchThen(NativePromise);
11471147
if (typeof global['fetch'] !== 'undefined') {
1148-
const fetchPromise = global['fetch']();
1148+
const fetchPromise = global['fetch']('about:blank');
11491149
// ignore output to prevent error;
11501150
fetchPromise.then(() => null, () => null);
11511151
if (fetchPromise.constructor != NativePromise) {

0 commit comments

Comments
 (0)