fix: remove warning
This commit is contained in:
3
main.ts
3
main.ts
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user