diff --git a/src/SEQTA.ts b/src/SEQTA.ts index ea2af734..cc24f733 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -2272,7 +2272,6 @@ export async function loadHomePage() { assessmentsPromise, classesPromise, prefsPromise, - noticesPromise ] = [ // Timetable data fetch(`${location.origin}/seqta/student/load/timetable?`, { @@ -2296,23 +2295,15 @@ export async function loadHomePage() { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ asArray: true, request: 'userPrefs' }) - }).then(res => res.json()), - - // Notices data - fetch(`${location.origin}/seqta/student/load/notices?`, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ date: TodayFormatted }) }).then(res => res.json()) ] // Process all data in parallel - const [timetableData, assessments, classes, prefs, notices] = await Promise.all([ + const [timetableData, assessments, classes, prefs] = await Promise.all([ timetablePromise, assessmentsPromise, classesPromise, - prefsPromise, - noticesPromise + prefsPromise ]) // Process timetable data diff --git a/src/declarations.d.ts b/src/declarations.d.ts index b1be1eea..f89205fc 100644 --- a/src/declarations.d.ts +++ b/src/declarations.d.ts @@ -3,6 +3,7 @@ declare module '*.woff'; declare module '*.scss'; declare module '*.png'; declare module '*.html'; +declare module '*.svelte'; declare module "*.png?base64" { const value: string;