fix: remove warning

This commit is contained in:
Julien Calixte
2026-02-02 16:10:29 +01:00
parent d0e5a07d3b
commit 08dd330fc3

View File

@@ -13,7 +13,7 @@ const focusList = document.querySelector('#focus-list')
if (focusList) { if (focusList) {
focusables.forEach((focusable, index) => { focusables.forEach((focusable, index) => {
const a = document.createElement('a') const a = document.createElement('a')
a.textContent = [...focusable.classList] a.textContent = Array.from(focusable.classList)
.filter((c) => c !== 'focusable') .filter((c) => c !== 'focusable')
.join(' ') .join(' ')
a.href = `?focus=${a.textContent}` a.href = `?focus=${a.textContent}`
@@ -103,6 +103,7 @@ const screenshotHouseButton = document.querySelector('#screenshot-house')
if (screenshotHouseButton) { if (screenshotHouseButton) {
screenshotHouseButton.addEventListener('click', async () => { screenshotHouseButton.addEventListener('click', async () => {
const house = document.querySelector('#thinking-people-system') const house = document.querySelector('#thinking-people-system')
if (!house) { if (!house) {
return return
} }