From 08dd330fc3abef855314ff0560b3a83877af6a68 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Mon, 2 Feb 2026 16:10:29 +0100 Subject: [PATCH] fix: remove warning --- main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index db4f78e..7f96fd6 100644 --- a/main.ts +++ b/main.ts @@ -13,7 +13,7 @@ const focusList = document.querySelector('#focus-list') if (focusList) { focusables.forEach((focusable, index) => { const a = document.createElement('a') - a.textContent = [...focusable.classList] + a.textContent = Array.from(focusable.classList) .filter((c) => c !== 'focusable') .join(' ') a.href = `?focus=${a.textContent}` @@ -103,6 +103,7 @@ const screenshotHouseButton = document.querySelector('#screenshot-house') if (screenshotHouseButton) { screenshotHouseButton.addEventListener('click', async () => { const house = document.querySelector('#thinking-people-system') + if (!house) { return }