Improve reliability

This commit is contained in:
Georg Krause 2022-01-22 17:58:24 +00:00 committed by Ciarán Ainsworth
parent 35c6fe6c7b
commit bc44fa389f
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ function getURLParams () {
const decode = function (s) { return decodeURIComponent(s.replace(pl, ' ')) } const decode = function (s) { return decodeURIComponent(s.replace(pl, ' ')) }
const query = window.location.search.substring(1) const query = window.location.search.substring(1)
while (match = search.exec(query)) { urlParams[decode(match[1])] = decode(match[2]) } while ((match = search.exec(query)) !== null) { urlParams[decode(match[1])] = decode(match[2]) }
return urlParams return urlParams
} }
export default { export default {