Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit ed7fff2

Browse files
committed
better polyfill support?
1 parent 1e961e1 commit ed7fff2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/wrapper-start.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,4 @@
8989
throw new TypeError('No environment baseURI');
9090
}
9191

92-
var URL = __global.URL;
93-
try {
94-
if (new URL('test:///').protocol != 'test:')
95-
URL = URLPolyfill;
96-
}
97-
catch(e) {
98-
URL = URLPolyfill;
99-
}
92+
var URL = __global.URLPolyfill || __global.URL;

0 commit comments

Comments
 (0)