aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-worker1.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-10-19 07:34:36 +0000
committerstephan <stephan@noemail.net>2022-10-19 07:34:36 +0000
commitfd31ae3bf9a2093ae5f29a1d70226bd46baceb1a (patch)
treeb6bba52c15e3cc8d6cfb7373ada9afb17d7b23d3 /ext/wasm/api/sqlite3-worker1.js
parent9dc4d5e6b44c2491b291a9b1b7d6d6be78f33364 (diff)
downloadsqlite-fd31ae3bf9a2093ae5f29a1d70226bd46baceb1a.tar.gz
sqlite-fd31ae3bf9a2093ae5f29a1d70226bd46baceb1a.zip
Rename several demo/test files and include more of them in the end-user dist archive.
FossilOrigin-Name: 9c85835f6f50eb3b1a2b89c817816335743f04440c48bfa05aa89ec519cc0d51
Diffstat (limited to 'ext/wasm/api/sqlite3-worker1.js')
-rw-r--r--ext/wasm/api/sqlite3-worker1.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/wasm/api/sqlite3-worker1.js b/ext/wasm/api/sqlite3-worker1.js
index bc860300b..26c88402c 100644
--- a/ext/wasm/api/sqlite3-worker1.js
+++ b/ext/wasm/api/sqlite3-worker1.js
@@ -26,11 +26,8 @@
Worker constructor and then listen for an event in the form shown
above in order to know when the module has completed initialization.
- This file accepts a couple of URL arguments to adjust how it loads
- sqlite3.js:
+ This file accepts a URL arguments to adjust how it loads sqlite3.js:
- - `sqlite3.js`, if set, is used as the URI to `sqlite3.js` and it
- may contain path elements, e.g. `sqlite3.js=foo/bar/my-sqlite3.js`.
- `sqlite3.dir`, if set, treats the given directory name as the
directory from which `sqlite3.js` will be loaded.
@@ -40,9 +37,7 @@
(()=>{
const urlParams = new URL(self.location.href).searchParams;
let theJs = 'sqlite3.js';
- if(urlParams.has('sqlite3.js')){
- theJs = urlParams.get('sqlite3.js');
- }else if(urlParams.has('sqlite3.dir')){
+ if(urlParams.has('sqlite3.dir')){
theJs = urlParams.get('sqlite3.dir') + '/' + theJs;
}
importScripts(theJs);