From b759753697bcdbf82539af7ef3e9bd7648382dee Mon Sep 17 00:00:00 2001 From: Crazypersonalph <93847055+Crazypersonalph@users.noreply.github.com> Date: Tue, 21 May 2024 10:05:19 +0800 Subject: [PATCH] fix notices not showing on home --- src/SEQTA.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 4e02cf8d..124af1bf 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -2439,8 +2439,7 @@ async function loadHomePage() { }) const response = await GetPrefs.json() - - const labelArray = response.payload[1].value.split(' ') + const labelArray = response.payload[3].value.split(' ') const xhr2 = new XMLHttpRequest() xhr2.open( @@ -2470,6 +2469,7 @@ async function loadHomePage() { for (let i = 0; i < NoticesPayload.payload.length; i++) { if (labelArray.includes(JSON.stringify(NoticesPayload.payload[i].label))) { // Create a div, and place information from json response + console.log('hello') const NewNotice = document.createElement('div') NewNotice.classList.add('notice') const title = stringToHTML(