This commit is contained in:
Alex Gleason 2023-11-15 17:09:53 -06:00
parent 71e8d26195
commit e601c43197
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@ import SqliteWorker from './workers/sqlite.ts';
const sqliteWorker = new SqliteWorker('./data/db.sqlite3');
export { sqliteWorker };
export { sqliteWorker };

View File

@ -9,7 +9,7 @@ type Msg =
| ['query', [string, unknown[]]];
function call([cmd, args]: Msg) {
switch(cmd) {
switch (cmd) {
case 'open':
return handleOpen(args[0]);
case 'query':
@ -31,4 +31,4 @@ self.addEventListener('message', (event: MessageEvent<[string, Msg]>) => {
self.postMessage([id, result]);
});
self.postMessage(['ready']);
self.postMessage(['ready']);