From: Dan Brown Date: Sun, 28 Jan 2024 18:06:55 +0000 (+0000) Subject: Updated to include and load sql-wasm locally X-Git-Url: http://source.bookstackapp.com/website/commitdiff_plain/3b7dca8f062047be6cbc1e10ff91f6567f2fd7fc Updated to include and load sql-wasm locally --- diff --git a/LICENSE b/LICENSE index 23643c7..3c619ea 100644 --- 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 index 0000000..e823006 Binary files /dev/null and b/themes/bookstack/static/libs/sql-wasm.wasm differ diff --git a/themes/bookstack/static/libs/webidx.js b/themes/bookstack/static/libs/webidx.js index f72b0a8..b14717f 100644 --- a/themes/bookstack/static/libs/webidx.js +++ b/themes/bookstack/static/libs/webidx.js @@ -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')) {