Skip to content
Snippets Groups Projects
Commit 1207a50a authored by Anton Shestakov's avatar Anton Shestakov
Browse files

hgweb: look up "URLSearchParams" in "window" to work around jshint issues

Unfortunately, current version of jshint (2.9.5) doesn't know such a global
variable and complains that it's undefined. Since this line tries to look up
URLSearchParams in a global scope (i.e. window), let's simply preface it with
"window." to work around jshint.
parent 69a865dc
No related branches found
No related tags found
No related merge requests found
......@@ -451,7 +451,7 @@
"ignoreblanklines",
];
var urlParams = new URLSearchParams(window.location.search);
var urlParams = new window.URLSearchParams(window.location.search);
function updateAndRefresh(e) {
var checkbox = e.target;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment