Load switched to DOMContentLoaded
parent
827049ab1e
commit
4d140d5909
|
@ -13,7 +13,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle local configuration
|
// Handle local configuration
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('DOMContentLoaded', function () {
|
||||||
let is_enabled = localStorage.getItem('dark-mode')
|
let is_enabled = localStorage.getItem('dark-mode')
|
||||||
if (is_enabled === 'true' ) {
|
if (is_enabled === 'true' ) {
|
||||||
DarkReader.setFetchMethod(window.fetch)
|
DarkReader.setFetchMethod(window.fetch)
|
||||||
|
|
Loading…
Reference in New Issue