From 254d2111c867f55a66c5610bbf10758d465b607a Mon Sep 17 00:00:00 2001 From: sethburkart123 Date: Mon, 24 Jun 2024 11:10:54 +1000 Subject: [PATCH] fix: certain cases caused animations to trigger after element addition --- src/SEQTA.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 57dbd47a..c7513dcd 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -610,7 +610,7 @@ async function handleSublink(sublink: string | undefined): Promise { } async function handleTimetable(): Promise { - await waitForElm('.time', true, 20) + await waitForElm('.time', true, 10) if (settingsState.timeFormat == '12') { const times = document.querySelectorAll('.timetablepage .times .time') @@ -649,7 +649,7 @@ async function handleMessages(node: Element): Promise { if (!settingsState.animations) return; - await waitForElm('[data-message]', true, 20); + await waitForElm('[data-message]', true, 10); const messages = Array.from(document.querySelectorAll('[data-message]')).slice(0, 35); animate( messages, @@ -666,7 +666,7 @@ async function handleDashboard(node: Element): Promise { if (!(node instanceof HTMLElement)) return; if (!settingsState.animations) return; - await waitForElm('.dashlet', true, 20); + await waitForElm('.dashlet', true, 10); animate( '.dashboard > *', { opacity: [0, 1], y: [10, 0] }, @@ -682,7 +682,7 @@ async function handleDocuments(node: Element): Promise { if (!(node instanceof HTMLElement)) return; if (!settingsState.animations) return; - await waitForElm('.document', true, 20); + await waitForElm('.document', true, 10); animate( '.documents tbody tr.document', { opacity: [0, 1], y: [10, 0] }, @@ -698,7 +698,7 @@ async function handleReports(node: Element): Promise { if (!(node instanceof HTMLElement)) return; if (!settingsState.animations) return; - await waitForElm('.report', true, 20); + await waitForElm('.report', true, 10); animate( '.reports .item', { opacity: [0, 1], y: [10, 0] },