From 91bedcab61424cdfb2f3ba9e48481406fe141ceb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 18 Jul 2024 11:44:45 +0200 Subject: 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 --- desktop/source/app/appinit.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop/source') 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 #if defined EMSCRIPTEN +#include #include #endif @@ -86,6 +87,7 @@ void Desktop::InitApplicationServiceManager() comphelper::setProcessServiceFactory(sm); #if defined EMSCRIPTEN init_unoembind_uno(); + EM_ASM(Module.uno_init$resolve();); #endif } -- cgit