mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
fix(eventManager): not triggering for already created elements'
This commit is contained in:
1 parent
8fb29f7f21
commit
4bf5420140
1 file changed
+5
-4
+5
-4
@@ -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',
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user