fix: page may fail to load due to shortcut links function failing

This commit is contained in:
SethBurkart123
2025-02-21 17:40:38 +11:00
parent 6247e17d70
commit d3ae21b7fa
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -2420,7 +2420,12 @@ export async function loadHomePage() {
const cleanup = setupTimetableListeners()
// Initialize shortcuts immediately
addShortcuts(settingsState.shortcuts)
try {
addShortcuts(settingsState.shortcuts)
} catch(err: any) {
console.error('[BetterSEQTA+] Error adding shortcuts:',
err.message || err)
}
AddCustomShortcutsToPage()
// Get current date