Fix anchor links do not work with addressbar=permalink and animationduration=0

Fixes #6757
This commit is contained in:
jeremy@jermolene.com 2022-07-05 18:39:14 +01:00
parent ceec7b5737
commit f93fe50044
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@ exports.startup = function() {
var hash = $tw.utils.getLocationHash();
if(hash !== $tw.locationHash) {
$tw.locationHash = hash;
openStartupTiddlers({defaultToCurrentStory: true});
if(hash !== "#") {
openStartupTiddlers({defaultToCurrentStory: true});
}
}
},false);
// Listen for the tm-browser-refresh message