mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 19:54:39 +00:00
fix: fix the timetable edit plugin
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user