aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/extern-post-js.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-10-19 01:07:30 +0000
committerstephan <stephan@noemail.net>2022-10-19 01:07:30 +0000
commit71de8e02416aa9a4ad90ac6958ff3fa025a33d2d (patch)
tree0c2b079d3d1015cbbc4af3dfd08107e96d2e2d1d /ext/wasm/api/extern-post-js.js
parentb5e2e6fcd39901f3280a4bbbfec7f41d4bcc48f8 (diff)
downloadsqlite-71de8e02416aa9a4ad90ac6958ff3fa025a33d2d.tar.gz
sqlite-71de8e02416aa9a4ad90ac6958ff3fa025a33d2d.zip
Considerable wasm/js build cleanups and reworking. Remove wasmfs builds from the end-user deliverables and disable the wasmfs build by default, per /chat discussion, as it doubles our deliverable count for only marginal gain. Attempt to move the sqlite3.js/wasm files into subdirectories but rediscovered that that breaks loading in Worker mode because URI resolution of the wasm files differs depending on whether the main script is loaded from a script tag or a Worker.
FossilOrigin-Name: 5b23e0675efdd2f1ea7b4f5836a579e8d6aa8a25b3f1a6a950520ad845ff01bb
Diffstat (limited to 'ext/wasm/api/extern-post-js.js')
-rw-r--r--ext/wasm/api/extern-post-js.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/wasm/api/extern-post-js.js b/ext/wasm/api/extern-post-js.js
index 51e8d12b2..7dba03b3a 100644
--- a/ext/wasm/api/extern-post-js.js
+++ b/ext/wasm/api/extern-post-js.js
@@ -43,3 +43,11 @@
self.sqlite3InitModule.ready = originalInit.ready;
//console.warn("Replaced sqlite3InitModule()");
})();
+
+if(0){
+ console.warn("self.location.href =",self.location.href);
+ if('undefined' !== typeof document){
+ console.warn("document.currentScript.src =",
+ document?.currentScript?.src);
+ }
+}