File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
scaladoc/resources/dotty_res/scripts Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ function attachAllListeners() {
53
53
if ( href === "" ) { return }
54
54
const url = new URL ( href )
55
55
el . addEventListener ( 'click' , e => {
56
- if ( url . href . replace ( "#" , "" ) === window . location . href . replace ( "#" , "" ) ) { return }
56
+ if ( url . href . replace ( / # . * / , "" ) === window . location . href . replace ( / # . * / , "" ) ) { return }
57
57
if ( url . origin !== window . location . origin ) { return }
58
58
if ( e . metaKey || e . ctrlKey || e . shiftKey || e . altKey || e . button !== 0 ) { return }
59
59
e . preventDefault ( )
@@ -188,6 +188,7 @@ document.getElementById("mobile-menu-close").addEventListener('click', _e => {
188
188
} )
189
189
190
190
window . addEventListener ( 'popstate' , e => {
191
+ if ( e . state === null ) { return }
191
192
const { leftColumn, mainDiv, title } = e . state
192
193
document . title = title
193
194
const { children } = document . body . firstChild
You can’t perform that action at this time.
0 commit comments