Skip to content

Commit

Permalink
Fix trekking profile not loaded
Browse files Browse the repository at this point in the history
when hash without additional params, regression of 4d44153
  • Loading branch information
nrenner committed Jun 24, 2022
1 parent 9852aaf commit 8194c78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
}

var onHashChangeCb = function (url) {
var url2params = function (s) {
var url2params = function (s = '') {
s = s.replace(/;/g, '|');
var p = {};
var sep = '&';
Expand All @@ -428,7 +428,6 @@
}
return p;
};
if (url == null) return;

var opts = router.parseUrlParams(url2params(url));
router.setOptions(opts);
Expand Down

0 comments on commit 8194c78

Please sign in to comment.