utils.js: Fix method `removeUrlParams()`

This commit is contained in:
Johannes Meyer 2020-01-28 15:23:41 +01:00
parent f4b96270aa
commit 5a031bf659
1 changed files with 2 additions and 2 deletions

View File

@ -171,8 +171,8 @@
key = encodeURIComponent(key);
for (var i = 0; i < newparams.length; i++) {
if (typeof newparams[i].key === key) {
delete newparams[i];
if (newparams[i].key === key) {
newparams.splice(i, 1);
return;
}
}