diff options
author | Simon Knox <psimyn@gmail.com> | 2017-05-19 16:10:40 +0300 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-05-19 16:10:40 +0300 |
commit | fe41456393b27cc095f22938488ffa8d837f5482 (patch) | |
tree | 661814e9508107a051d0d48bde9c558c68317cd7 /app/assets/javascripts/lib | |
parent | 39a9265969b0a41d9f2e9948f026eb61ade0883e (diff) |
fix IE11 error from sentry
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/url_utility.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/url_utility.js b/app/assets/javascripts/lib/utils/url_utility.js index b9d2fc25c39..3328ff9cc23 100644 --- a/app/assets/javascripts/lib/utils/url_utility.js +++ b/app/assets/javascripts/lib/utils/url_utility.js @@ -66,7 +66,8 @@ w.gl.utils.removeParamQueryString = function(url, param) { })()).join('&'); }; w.gl.utils.removeParams = (params) => { - const url = new URL(window.location.href); + const url = document.createElement('a'); + url.href = window.location.href; params.forEach((param) => { url.search = w.gl.utils.removeParamQueryString(url.search, param); }); |