aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-02-06 14:01:19 +0000
committerstephan <stephan@noemail.net>2023-02-06 14:01:19 +0000
commit3ff812aa94644dc60bda6933de8b4870d9f5cba6 (patch)
treee368c239e49016b898dc4db1b49f21022e30ee8d /ext/wasm/api/sqlite3-worker1-promiser.c-pp.js
parentee18659f69d15498f233cb987b7f7db21445f4a4 (diff)
downloadsqlite-3ff812aa94644dc60bda6933de8b4870d9f5cba6.tar.gz
sqlite-3ff812aa94644dc60bda6933de8b4870d9f5cba6.zip
Add capability to override the JS's use of console.log/debug/warn/error() with client-provided versions via the bootstrap-time config object.
FossilOrigin-Name: c54f29d8e55419eaa9168e799dab5030e89063b13d8390a50616606422d164dc
Diffstat (limited to 'ext/wasm/api/sqlite3-worker1-promiser.c-pp.js')
-rw-r--r--ext/wasm/api/sqlite3-worker1-promiser.c-pp.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js b/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js
index 1689d3480..0f1ae39ea 100644
--- a/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js
+++ b/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js
@@ -246,9 +246,9 @@ self.sqlite3Worker1Promiser.defaultConfig = {
const src = this.currentScript.src.split('/');
src.pop();
theJs = src.join('/')+'/' + theJs;
- //console.warn("promiser currentScript, theJs =",this.currentScript,theJs);
+ //sqlite3.config.warn("promiser currentScript, theJs =",this.currentScript,theJs);
}else{
- //console.warn("promiser self.location =",self.location);
+ //sqlite3.config.warn("promiser self.location =",self.location);
const urlParams = new URL(self.location.href).searchParams;
if(urlParams.has('sqlite3.dir')){
theJs = urlParams.get('sqlite3.dir') + '/' + theJs;