fix: loading

This commit is contained in:
Cory Dransfeldt 2024-10-30 20:22:08 -07:00
parent f27baa0ce7
commit 31a03ba1bb
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "2.4.5",
"version": "2.4.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "2.4.5",
"version": "2.4.6",
"license": "MIT",
"dependencies": {
"@11ty/eleventy-fetch": "4.0.1",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "2.4.5",
"version": "2.4.6",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"engines": {

View file

@ -48,7 +48,7 @@
</head>
<body>
<script>
window.addEventListener("load", () => {
document.addEventListener("DOMContentLoaded", () => {
(() => {
const storageType =
document.querySelector("theme-toggle")?.getAttribute("storage") === "local"