fix: fix the timetable edit plugin

This commit is contained in:
2026-04-17 15:55:32 +09:30
parent ec68cec0ca
commit f6ac112329
2 changed files with 19 additions and 4 deletions
+6 -1
View File
@@ -63,7 +63,12 @@ function resetTimetableStyles(): void {
}
async function handleTimetable(): Promise<void> {
await waitForElm(".time", true, 10);
// SEQTA uses `.times` blocks on entries, not necessarily `.time`; avoid infinite polling on a missing selector.
try {
await waitForElm(".timetablepage .times, .timetablepage .entry.class", true, 50, 200);
} catch {
/* timetable body may render after the shell */
}
// Convert time format if needed
if (settingsState.timeFormat == "12") {