diff --git a/src/SEQTA.ts b/src/SEQTA.ts index b7b0e22..888776b 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -688,9 +688,6 @@ function SortMessagePageItems(messagesParentElement: any) { } async function LoadPageElements(): Promise { - 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 { className: 'assessmentsWrapper', }, handleAssessments); } - + + await AddBetterSEQTAElements(); + const sublink: string | undefined = window.location.href.split('/')[4]; + + await handleSublink(sublink); }