[Fix] Don't add ? when clearing query params
This commit is contained in:
parent
920e2cbd79
commit
ea0d526c7e
|
@ -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
|
||||
},
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "strolchjs",
|
||||
"version": "0.2.4",
|
||||
"version": "0.2.5",
|
||||
"main": "strolch.js",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
|
|
Loading…
Reference in New Issue