Add new safe mode layout

This commit is contained in:
jeremy@jermolene.com
2023-03-12 16:05:45 +00:00
parent 1ed3217239
commit c3ca72ebe2
3 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ function updateLocationHash(options) {
break;
}
// Only change the location hash if we must, thus avoiding unnecessary onhashchange events
if($tw.utils.getLocationHash() !== $tw.locationHash) {
if($tw.utils.getLocationHash() !== $tw.locationHash && !$tw.safeMode) {
if(options.updateHistory === "yes") {
// Assign the location hash so that history is updated
window.location.hash = $tw.locationHash;