desktop/source/app/initjsunoscripting.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 24910d51270576aff864e262f58f5ceb05f9e24f
Author:     Stephan Bergmann <stephan.bergm...@collabora.com>
AuthorDate: Sun Aug 3 10:27:45 2025 +0200
Commit:     Stephan Bergmann <stephan.bergm...@collabora.com>
CommitDate: Sun Aug 3 16:49:01 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 <stephan.bergm...@collabora.com>

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>();

Reply via email to