File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ export interface WebEncryptionOptions {
6464}
6565
6666type WithWebEncryptionOptions < Base > = Base & {
67+ /**
68+ * Encryption key for the database.
69+ * If set, the database will be encrypted using Multiple Ciphers.
70+ */
6771 encryptionKey ?: string ;
6872} ;
6973
Original file line number Diff line number Diff line change @@ -14,13 +14,10 @@ export async function _openDB(
1414) : Promise < DBFunctionsInterface > {
1515 let moduleFactory ;
1616 if ( encryptionKey ) {
17- console . log ( 'Using encrypted database' ) ;
1817 moduleFactory = ( await import ( '@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.mjs' ) ) . default ;
1918 } else {
20- console . log ( 'Using unencrypted database' ) ;
2119 moduleFactory = ( await import ( '@journeyapps/wa-sqlite/dist/wa-sqlite-async.mjs' ) ) . default ;
2220 }
23- // const { default: moduleFactory } = await import('@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.mjs');
2421 const module = await moduleFactory ( ) ;
2522 const sqlite3 = SQLite . Factory ( module ) ;
2623
You can’t perform that action at this time.
0 commit comments