Skip to content

Commit 537c68a

Browse files
committed
fix document.title setting
1 parent 0f3083c commit 537c68a

File tree

1 file changed

+3
-3
lines changed
  • scaladoc/resources/dotty_res/scripts

1 file changed

+3
-3
lines changed

scaladoc/resources/dotty_res/scripts/ux.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ function attachAllListeners() {
6161
window.history.replaceState({
6262
leftColumn: children[3].innerHTML,
6363
mainDiv: children[6].innerHTML,
64-
title: window.title,
64+
title: document.title,
6565
}, '')
6666
}
67-
window.title = title
67+
document.title = title
6868
const leftColumn = bodyDiv.children[3].innerHTML
6969
const mainDiv = bodyDiv.children[6].innerHTML
7070
window.history.pushState({ leftColumn, mainDiv, title }, '', href)
@@ -175,7 +175,7 @@ document.getElementById("mobile-menu-close").addEventListener('click', _e => {
175175

176176
window.addEventListener('popstate', e => {
177177
const { leftColumn, mainDiv, title } = e.state
178-
window.title = title
178+
document.title = title
179179
const { children } = document.body.firstChild
180180
children[3].innerHTML = leftColumn
181181
children[6].innerHTML = mainDiv

0 commit comments

Comments
 (0)