Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
falsandtru committed Oct 26, 2023
1 parent 4604cf4 commit 8f20ea1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/layer/interface/module/view/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export class NavigationView extends Coroutine<never> {
super(async function* () {
return this.finally(bind(window, 'popstate', ev => {
if (!isTransitable(page.state) || !isTransitable(window.history.state)) return;
// Prevent updates by frames.
if (standardize(window.location.href) === page.url.href) return;
listener(ev);
}));
Expand Down

0 comments on commit 8f20ea1

Please sign in to comment.