From 3a27b6612a1c4effaa1a4d58121588d8c5c31616 Mon Sep 17 00:00:00 2001 From: Sqaaakoi Date: Mon, 20 Jan 2025 11:22:50 +1300 Subject: [PATCH] Preload: remove redundant function calling a function --- src/preload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preload.ts b/src/preload.ts index 958184512..a74413d8b 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -35,7 +35,7 @@ if (location.protocol !== "data:") { if (document.readyState === "complete") { injectStyle(); } else { - document.addEventListener("DOMContentLoaded", () => injectStyle(), { + document.addEventListener("DOMContentLoaded", injectStyle, { once: true }); }