Commit f8c6252f authored by Romain Casati's avatar Romain Casati
Browse files

Fixing multiple location for SQLite load.

parent 91e90841
Pipeline #441217 passed with stage
in 5 minutes and 17 seconds
......@@ -16,7 +16,8 @@
constructor() {
super();
this.execution_count = 0;
this._sqlJsUrl = "https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.5.0/sql-wasm.min.js";
this._sqlJsBase = "https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.5.0/"
this._sqlJsUrl = `${this._sqlJsBase}sql-wasm.min.js`;
};
language () { return "sql"; };
......@@ -40,7 +41,7 @@
}
const SQL = await window.initSqlJs({
locateFile: file => `https://sql.js.org/dist/${file}`
locateFile: file => `${this._sqlJsBase}${file}`
});
this.db = new SQL.Database();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment