1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

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
This commit is contained in:
stephan
2023-02-02 06:17:22 +00:00
parent 71a9339672
commit 7667eedf95
4 changed files with 11 additions and 14 deletions

View File

@ -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{