diff options
| author | Jieiku | 2022-08-14 12:41:15 -0700 |
|---|---|---|
| committer | Jieiku | 2022-08-14 12:41:15 -0700 |
| commit | 830cabab1f638052a8c4ac39eb86370da5a676eb (patch) | |
| tree | f59bc6914105256ea684066277a49ab2dce53300 /static/stork_config.js | |
| parent | cf95ee520261a0a523d5a3dfbc01a3847d67de51 (diff) | |
| download | abridge-830cabab1f638052a8c4ac39eb86370da5a676eb.tar.gz abridge-830cabab1f638052a8c4ac39eb86370da5a676eb.tar.bz2 abridge-830cabab1f638052a8c4ac39eb86370da5a676eb.zip | |
Alternate Search Libraries Tinysearch and Stork1.2.0
Diffstat (limited to 'static/stork_config.js')
| -rw-r--r-- | static/stork_config.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/static/stork_config.js b/static/stork_config.js new file mode 100644 index 0000000..8e2e11b --- /dev/null +++ b/static/stork_config.js @@ -0,0 +1,13 @@ +var baseUrl = document.querySelector("meta[name='base']").getAttribute("content"); +if (baseUrl.slice(-1) == "/") { + baseUrl = baseUrl.slice(0, -1); +} +stork +.initialize(baseUrl + "/stork.wasm") +.then(() => { + console.log("Finished downloading WASM"); +}) +.catch(e => { + console.error(e); +}); // download WASM +stork.register("stork",baseUrl + "/stork.st"); |
