diff --git a/src/SEQTA.ts b/src/SEQTA.ts
index 912c74eb..e2e546ca 100644
--- a/src/SEQTA.ts
+++ b/src/SEQTA.ts
@@ -2218,25 +2218,23 @@ async function loadHomePage() {
// Gets the current date
const date = new Date()
- // Formats the current date used send a request for timetable and notices later
- const TodayFormatted =
- date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + (date.getDate() < 10 ? '0' : '') + date.getDate()
-
-
+
+
// Creates the shortcut container into the home container
const Shortcut = stringToHTML('
')
// Appends the shortcut container into the home container
document.getElementById('home-container')!.append(Shortcut.firstChild!)
-
+
// Creates the container div for the timetable portion of the home page
const Timetable = stringToHTML('')
// Appends the timetable container into the home container
document.getElementById('home-container')!.append(Timetable.firstChild!)
- if (document.getElementById('home-container')) {
- callHomeTimetable(TodayFormatted, true)
- } else {
- console.error("HELP! THERE IS NO HOME CONTAINER")
- }
+
+ // Formats the current date used send a request for timetable and notices later
+ const TodayFormatted =
+ date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + (date.getDate() < 10 ? '0' : '') + date.getDate()
+
+ callHomeTimetable(TodayFormatted, true)
const timetablearrowback = document.getElementById('home-timetable-back')