From bfb131d4ea2ddd97997796f30fca3eb89a6fa039 Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Sat, 7 Sep 2024 15:11:25 -0700 Subject: [PATCH] final --- src/resources/scripts/main.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/resources/scripts/main.ts b/src/resources/scripts/main.ts index f63710c..110ed66 100644 --- a/src/resources/scripts/main.ts +++ b/src/resources/scripts/main.ts @@ -628,9 +628,8 @@ if (window.location.pathname === '/settings/') { } else if (window.location.pathname === '/updates/') { document.addEventListener('DOMContentLoaded', async () => { const updatesContainer = document.querySelector('.updates-container'); - const data: { version: string; changelog: string[] }[] = ( - await (await fetch('/resources/data/main.json')).json() - ).updates; + const data: { version: string; changelog: string[] }[] = (await (await fetch('/resources/data/main.json')).json()) + .updates; data.forEach((update) => { const version = document.createElement('div'); const name = document.createElement('strong');