]> BookStack Code Mirror - website/commitdiff
Updated to include and load sql-wasm locally
authorDan Brown <redacted>
Sun, 28 Jan 2024 18:06:55 +0000 (18:06 +0000)
committerDan Brown <redacted>
Sun, 28 Jan 2024 18:06:55 +0000 (18:06 +0000)
LICENSE
themes/bookstack/static/libs/sql-wasm.wasm [new file with mode: 0644]
themes/bookstack/static/libs/webidx.js

diff --git a/LICENSE b/LICENSE
index 23643c793547bdf9dcaadfc8b09686192553ea3c..3c619ea0bd1e87c39f064bed3f366089cdd09c39 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -13,6 +13,7 @@ The following library files are also under a different license and copyright:
 - search/webidx.pl (BSD 3-Clause)
 - themes/bookstack/static/libs/webidx.js (BSD 3-Clause)
 - themes/bookstack/static/libs/sql-wasm.js (MIT)
+- themes/bookstack/static/libs/sql-wasm.wasm (MIT)
 - themes/bookstack/static/libs/photoswipe.min.js (MIT)
 
 ---
diff --git a/themes/bookstack/static/libs/sql-wasm.wasm b/themes/bookstack/static/libs/sql-wasm.wasm
new file mode 100644 (file)
index 0000000..e823006
Binary files /dev/null and b/themes/bookstack/static/libs/sql-wasm.wasm differ
index f72b0a821f90665cf79fd828df3a69a503b39c23..b14717f0e6f5d20defd16f31ed21116e6744896c 100644 (file)
@@ -12,7 +12,7 @@ webidx.search = async function (params) {
     //
     // initialise sql.js
     //
-    webidx.sql = await window.initSqlJs({locateFile: file => `https://sql.js.org/dist/${file}`});
+    webidx.sql = await window.initSqlJs({locateFile: file => `/libs/${file}`});
   }
 
   if (webidx.hasOwnProperty('db')) {