From 82eca5c705fa9ae82d745723a57dca0b0e7b5f9b Mon Sep 17 00:00:00 2001 From: Paula Derrenger <107626595+pderrenger@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:46:19 +0100 Subject: [PATCH] Ultralytics Refactor https://ultralytics.com/actions (#25) Automated merge of Ultralytics Code Refactor --- docs/overrides/javascript/extra.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/overrides/javascript/extra.js b/docs/overrides/javascript/extra.js index f7f6211..3db5624 100644 --- a/docs/overrides/javascript/extra.js +++ b/docs/overrides/javascript/extra.js @@ -30,7 +30,9 @@ checkAutoTheme(); document.addEventListener("DOMContentLoaded", () => { const autoThemeInput = document.getElementById("__palette_1"); autoThemeInput?.addEventListener("click", () => { - if (autoThemeInput.checked) setTimeout(checkAutoTheme); + if (autoThemeInput.checked) { + setTimeout(checkAutoTheme); + } }); });