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

Commit 1e961e1

Browse files
committed
URL Polyfill test fix
1 parent 6be8fd2 commit 1e961e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wrapper-start.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191

9292
var URL = __global.URL;
9393
try {
94-
new URL('test:///').protocol == 'test:';
94+
if (new URL('test:///').protocol != 'test:')
95+
URL = URLPolyfill;
9596
}
9697
catch(e) {
9798
URL = URLPolyfill;

0 commit comments

Comments
 (0)