Skip to content

Commit 3401ce6

Browse files
authored
Editorial: clean up condition logic in navigate event firing
"commit a navigate event" is a noop when the navigation is not intercepted in the first place. Instead of calling it and checking for the interception state internally, only call it for intercepted navigations, and rename it to "commit an intercepted navigate event". Also remove internal logic that tests whether the navigation is same-document (intercepted navigations are always same-document).
1 parent 68909b2 commit 3401ce6

File tree

1 file changed

+162
-194
lines changed

1 file changed

+162
-194
lines changed

0 commit comments

Comments
 (0)