Skip to content

Commit 87ee85f

Browse files
ShogunPandaaduh95
andauthored
doc: use better attribute
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent e23f274 commit 87ee85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api_assets/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function setupStickyHeaders() {
119119
}
120120

121121
// Check if we have JavaScript support
122-
document.querySelector(':root').classList.add('has-js');
122+
document.documentElement.classList.add('has-js');
123123

124124
// Restore user mode preferences
125125
setupTheme();

0 commit comments

Comments
 (0)