benkuly
08/01/2021, 12:05 PMturansky
08/01/2021, 2:12 PMCLOVIS
08/01/2021, 2:31 PMbenkuly
08/01/2021, 3:17 PMCLOVIS
08/01/2021, 5:13 PMCLOVIS
08/01/2021, 5:13 PMbenkuly
08/02/2021, 6:24 AMvar Account_1 = $module$_matrix_org_olm.Account;
right after the external js module is loaded. Account_1
is used later, but points to undefined, because init
wasn't called before var Account_1 = ...
. A workaround is to call js("new Olm.Account()")
everytime I would call Account()
, but that feels really bad.benkuly
08/02/2021, 6:44 AM-Xir-property-lazy-initialization
and it did not work. Still var Account_1 = $module$_matrix_org_olm.Account;
at the beginning.