Skip to content

Commit

Permalink
fix(eventManager): not triggering for already created elements'
Browse files Browse the repository at this point in the history
  • Loading branch information
SethBurkart123 committed Dec 2, 2024
1 parent 8fb29f7 commit 4bf5420
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/SEQTA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,6 @@ function SortMessagePageItems(messagesParentElement: any) {
}

async function LoadPageElements(): Promise<void> {
await AddBetterSEQTAElements();
const sublink: string | undefined = window.location.href.split('/')[4];

eventManager.register('messagesAdded', {
elementType: 'div',
className: 'messages',
Expand Down Expand Up @@ -727,7 +724,11 @@ async function LoadPageElements(): Promise<void> {
className: 'assessmentsWrapper',
}, handleAssessments);
}


await AddBetterSEQTAElements();
const sublink: string | undefined = window.location.href.split('/')[4];


await handleSublink(sublink);
}

Expand Down

0 comments on commit 4bf5420

Please sign in to comment.