Skip to content

Commit

Permalink
fix(tab): hash historytype did not work anymore
Browse files Browse the repository at this point in the history
Hash historyType (default) was broken since 2.9.0 , because #2158 was only targeted to historyType "state", but did not fetch it.
  • Loading branch information
lubber-de committed May 13, 2023
1 parent 9cfbc56 commit 8c329ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/definitions/modules/tab.js
Expand Up @@ -99,7 +99,7 @@
module.bind.events();

if (settings.history && !initializedHistory) {
module.initializeHistory();
settings.history = module.initializeHistory();
initializedHistory = true;
}

Expand All @@ -109,7 +109,7 @@
module.debug('No active tab detected, setting tab active', activeTab);
module.changeTab(activeTab);
}
if (activeTab !== null && settings.history) {
if (activeTab !== null && settings.history && settings.historyType === 'state') {
var autoUpdate = $.address.autoUpdate();
$.address.autoUpdate(false);
$.address.value(activeTab);
Expand Down Expand Up @@ -202,6 +202,8 @@
$.address
.bind('change', module.event.history.change)
;

return true;
},

event: {
Expand Down

0 comments on commit 8c329ba

Please sign in to comment.