diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-07-18 11:44:45 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-07-18 15:55:12 +0200 |
commit | 91bedcab61424cdfb2f3ba9e48481406fe141ceb (patch) | |
tree | 67c15068c4c1b46ea83c5f138ac9ebc776a79aea /desktop/source | |
parent | a7c1163684fa5c0376efebe8dc6225a7dfb8e700 (diff) |
Change from Module.intiUno() to Module.uno_init promise
...that is resolved from within C++ Desktop::InitApplicationServiceManager once
UNO is fully initialized, so client code can trigger on
Module.uno_init.then(...)
Change-Id: I2d4c542d9729d09f434502e3f966e9ee474e926c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/app/appinit.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx index 633ebde2d967..f2b7edba1c8e 100644 --- a/desktop/source/app/appinit.cxx +++ b/desktop/source/app/appinit.cxx @@ -45,6 +45,7 @@ #include <map> #if defined EMSCRIPTEN +#include <emscripten.h> #include <bindings_uno.hxx> #endif @@ -86,6 +87,7 @@ void Desktop::InitApplicationServiceManager() comphelper::setProcessServiceFactory(sm); #if defined EMSCRIPTEN init_unoembind_uno(); + EM_ASM(Module.uno_init$resolve();); #endif } |