Skip to content

Commit

Permalink
Refactor addressbar updates
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Oct 13, 2024
1 parent e48f3ce commit 0e18fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ function prePageReveal(e: Event) {
}
function pageReveal() {
DEBUG && console.log('pageReveal');
top!.history.replaceState(self.history.state, '', self.location.href);
top!.document.title = titleLogo + ' ' + self.document.title;
if (inspectionChamber.viewTransition) {
forceAnimations();
beforeUpdateCallbackDone();
Expand Down Expand Up @@ -118,6 +116,8 @@ function beforeUpdateCallbackDone() {
}
modusFunction[modus]();
}
top!.history.replaceState(self.history.state, '', self.location.href);
top!.document.title = titleLogo + ' ' + self.document.title;
})
.finally(() => {});

Expand Down

0 comments on commit 0e18fd4

Please sign in to comment.