From 727c4b80ef49ecabe0de9da4b99b1aacb495baa1 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 30 Sep 2026 07:48:50 +0100 Subject: [PATCH] Make getter --- frontend/sync-client/src/sync-client.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/sync-client/src/sync-client.ts b/frontend/sync-client/src/sync-client.ts index d00b2061..821bd3c3 100644 --- a/frontend/sync-client/src/sync-client.ts +++ b/frontend/sync-client/src/sync-client.ts @@ -102,6 +102,14 @@ export class SyncClient { return this.cursorTracker.onRemoteCursorsUpdated; } + public get historyEntries(): SyncHistory["entries"] { + return this.history.entries; + } + + public get settings(): SyncSettings { + return this.settingsStore.getSettings(); + } + public static async create({ fs, persistence, @@ -247,14 +255,6 @@ export class SyncClient { ]); } - public get historyEntries(): SyncHistory["entries"] { - return this.history.entries; - } - - public get settings(): SyncSettings { - return this.settingsStore.getSettings(); - } - public async start(): Promise { await this.lifecycle.withLock(async () => { this.assertNotDestroyed();