Load switched to DOMContentLoaded

pull/1/head
Swissky 2022-12-18 22:18:22 +01:00
parent 827049ab1e
commit 4d140d5909
1 changed files with 1 additions and 1 deletions

View File

@ -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)