mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix notices not showing on home
This commit is contained in:
+2
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user