desktop/source/app/initjsunoscripting.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e3fd7f679542a7aa14feb2ba645f59a668b26966 Author: Stephan Bergmann <[email protected]> AuthorDate: Sun Aug 3 10:27:45 2025 +0200 Commit: Stephan Bergmann <[email protected]> CommitDate: Sun Aug 3 17:12:49 2025 +0200 Emscripten: Better use location.href instead of document.baseURI ...as the former would also be available in a [Shared]WorkerGlobalScope Change-Id: I9b2faccb0d7d6c98381c0e1498b06813d31d987f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188868 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> (cherry picked from commit 24910d51270576aff864e262f58f5ceb05f9e24f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188882 Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/desktop/source/app/initjsunoscripting.cxx b/desktop/source/app/initjsunoscripting.cxx index bb2dffa10ecb..4e704c9b4b10 100644 --- a/desktop/source/app/initjsunoscripting.cxx +++ b/desktop/source/app/initjsunoscripting.cxx @@ -31,7 +31,7 @@ namespace { extern "C" void getUnoScriptUrls(std::vector<std::u16string> * urls) { assert(urls != nullptr); - OUString const base(emscripten::val::global("document")["baseURI"].as<std::u16string>()); + OUString const base(emscripten::val::global("location")["href"].as<std::u16string>()); auto const val = emscripten::val::module_property("uno_scripts"); if (!val.isUndefined()) { auto const len = val["length"].as<std::uint32_t>();
