@@ -209,7 +209,10 @@ export class SharedSyncImplementation
209
209
* Adds a new client tab's message port to the list of connected ports
210
210
*/
211
211
addPort ( port : MessagePort ) {
212
- const portProvider = { port, clientProvider : Comlink . wrap < AbstractSharedSyncClientProvider > ( port ) } ;
212
+ const portProvider = {
213
+ port,
214
+ clientProvider : Comlink . wrap < AbstractSharedSyncClientProvider > ( port )
215
+ } ;
213
216
this . ports . push ( portProvider ) ;
214
217
215
218
// Give the newly connected client the latest status
@@ -296,7 +299,10 @@ export class SharedSyncImplementation
296
299
const lastPort = this . ports [ this . ports . length - 1 ] ;
297
300
return new Promise ( async ( resolve , reject ) => {
298
301
const abortController = new AbortController ( ) ;
299
- this . fetchCredentialsController = { controller : abortController , activePort : lastPort } ;
302
+ this . fetchCredentialsController = {
303
+ controller : abortController ,
304
+ activePort : lastPort
305
+ } ;
300
306
301
307
abortController . signal . onabort = reject ;
302
308
try {
@@ -315,7 +321,10 @@ export class SharedSyncImplementation
315
321
316
322
return new Promise ( async ( resolve , reject ) => {
317
323
const abortController = new AbortController ( ) ;
318
- this . uploadDataController = { controller : abortController , activePort : lastPort } ;
324
+ this . uploadDataController = {
325
+ controller : abortController ,
326
+ activePort : lastPort
327
+ } ;
319
328
320
329
// Resolving will make it retry
321
330
abortController . signal . onabort = ( ) => resolve ( ) ;
@@ -347,7 +356,11 @@ export class SharedSyncImplementation
347
356
const locked = new LockedAsyncDatabaseAdapter ( {
348
357
name : identifier ,
349
358
openConnection : async ( ) => {
350
- return new WorkerWrappedAsyncDatabaseConnection ( { remote, baseConnection : db , identifier } ) ;
359
+ return new WorkerWrappedAsyncDatabaseConnection ( {
360
+ remote,
361
+ baseConnection : db ,
362
+ identifier
363
+ } ) ;
351
364
} ,
352
365
logger : this . logger
353
366
} ) ;
0 commit comments