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

Commit 3e7432f

Browse files
committed
global setting IE fix
1 parent 2777db0 commit 3e7432f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/url-polyfill.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// from https://gist.github.com/Yaffle/1088850
2+
(function(global) {
23
function URLPolyfill(url, baseURL) {
34
if (typeof url != 'string')
45
throw new TypeError('URL must be a string');
@@ -65,4 +66,5 @@ function URLPolyfill(url, baseURL) {
6566
this.search = search;
6667
this.hash = hash;
6768
}
68-
(typeof self != 'undefined' ? self : global).URLPolyfill = URLPolyfill;
69+
global.URLPolyfill = URLPolyfill;
70+
})(typeof self != 'undefined' ? self : global);

0 commit comments

Comments
 (0)