aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-cleanup.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-02-02 06:17:22 +0000
committerstephan <stephan@noemail.net>2023-02-02 06:17:22 +0000
commit7667eedf953e42c7a8e6371a59357eeffe6630db (patch)
treec1657821147834308c97084098648dc4b6316d54 /ext/wasm/api/sqlite3-api-cleanup.js
parent71a93396727bb457ecb293a713d8f3206d0a9428 (diff)
downloadsqlite-7667eedf953e42c7a8e6371a59357eeffe6630db.tar.gz
sqlite-7667eedf953e42c7a8e6371a59357eeffe6630db.zip
Remove automatic installation of JS-global S object for the sake of client libraries which embed this library, per [forum:9d4f722c6912799d|request in the forum].
FossilOrigin-Name: 9504f68af8360ea6d61574fd4b9811af34b721c12d9653eb50adcf0f12b129fc
Diffstat (limited to 'ext/wasm/api/sqlite3-api-cleanup.js')
-rw-r--r--ext/wasm/api/sqlite3-api-cleanup.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/wasm/api/sqlite3-api-cleanup.js b/ext/wasm/api/sqlite3-api-cleanup.js
index 30cd64b05..7c23f8f89 100644
--- a/ext/wasm/api/sqlite3-api-cleanup.js
+++ b/ext/wasm/api/sqlite3-api-cleanup.js
@@ -51,11 +51,6 @@ if('undefined' !== typeof Module){ // presumably an Emscripten build
delete self.sqlite3ApiConfig;
}
- if(self.location && +self.location.port > 1024){
- console.warn("Installing sqlite3 bits as global S for local dev/test purposes.");
- self.S = sqlite3;
- }
-
Module.sqlite3 = sqlite3 /* Needed for customized sqlite3InitModule() to be able to
pass the sqlite3 object off to the client. */;
}else{