summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/wasm/qtloader.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js
index 3a8b7d7f5c..d73fe3e23a 100644
--- a/src/plugins/platforms/wasm/qtloader.js
+++ b/src/plugins/platforms/wasm/qtloader.js
@@ -126,6 +126,11 @@
// Signals to the application that a canvas has been resized.
// setFontDpi
// Sets the logical font dpi for the application.
+// module
+// Returns the Emscripten module object, or undefined if the module
+// has not been created yet. Note that the module object becomes available
+// at the very end of the loading sequence, _after_ the transition from
+// Loading to Running occurs.
function QtLoader(config)
@@ -249,6 +254,7 @@ function QtLoader(config)
publicAPI.resizeCanvasElement = resizeCanvasElement;
publicAPI.setFontDpi = setFontDpi;
publicAPI.fontDpi = fontDpi;
+ publicAPI.module = module;
self.restartCount = 0;
@@ -586,6 +592,10 @@ function QtLoader(config)
return self.qtFontDpi;
}
+ function module() {
+ return self.module;
+ }
+
setStatus("Created");
return publicAPI;