[Fix] Don't add ? when clearing query params

This commit is contained in:
Robert von Burg 2019-02-21 00:17:19 +01:00
parent 920e2cbd79
commit ea0d526c7e
2 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@
Strolch = {
props: {
strolch_js: '0.2.4',
strolch_js: '0.2.5',
version: null,
revision: null,
userConfig: null,
@ -231,6 +231,9 @@ Strolch = {
hash += paramName + '=' + paramValue;
}
if (hash.charAt(hash.length - 1) == "?")
hash = hash.substr(0, hash.length - 1);
document.location.hash = hash
},

View File

@ -1,6 +1,6 @@
{
"name": "strolchjs",
"version": "0.2.4",
"version": "0.2.5",
"main": "strolch.js",
"ignore": [
"**/.*",