We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 827049a commit 4d140d5Copy full SHA for 4d140d5
_includes/dark-mode.html
@@ -13,7 +13,7 @@
13
}
14
15
// Handle local configuration
16
- window.addEventListener('load', function () {
+ window.addEventListener('DOMContentLoaded', function () {
17
let is_enabled = localStorage.getItem('dark-mode')
18
if (is_enabled === 'true' ) {
19
DarkReader.setFetchMethod(window.fetch)
0 commit comments