diff --git a/frontend/obsidian-plugin/src/views/history-view.ts b/frontend/obsidian-plugin/src/views/history-view.ts index 04c8e56d..a0745d2d 100644 --- a/frontend/obsidian-plugin/src/views/history-view.ts +++ b/frontend/obsidian-plugin/src/views/history-view.ts @@ -80,8 +80,7 @@ export class HistoryView extends ItemView { public async onOpen(): Promise { await this.updateView(); - // eslint-disable-next-line @typescript-eslint/no-misused-promises - this.timer = setInterval(async () => this.updateView(), 1000); + this.timer = setInterval(() => void this.updateView(), 1000); } public async onClose(): Promise { diff --git a/frontend/sync-client/src/file-operations/file-operations.ts b/frontend/sync-client/src/file-operations/file-operations.ts index 7fb03be6..76986f9c 100644 --- a/frontend/sync-client/src/file-operations/file-operations.ts +++ b/frontend/sync-client/src/file-operations/file-operations.ts @@ -22,6 +22,7 @@ export class FileOperations { const decoder = new TextDecoder("utf-8"); + // Normalize line endings to LF on Windows let text = decoder.decode(content); text = text.replace(/\r\n/g, "\n"); @@ -136,6 +137,7 @@ export class FileOperations { public isFileEligibleForSync(path: RelativePath): boolean { return true; + // TODO: figure this out // if (Platform.isDesktopApp) { // return true; // } diff --git a/frontend/sync-client/src/services/sync-service.ts b/frontend/sync-client/src/services/sync-service.ts index ec31c0d1..69eb585a 100644 --- a/frontend/sync-client/src/services/sync-service.ts +++ b/frontend/sync-client/src/services/sync-service.ts @@ -22,9 +22,7 @@ export class SyncService { public constructor(private readonly settings: Settings) { this.createClient(settings.getSettings()); - settings.addOnSettingsChangeHandlers((s) => { - this.createClient(s); - }); + settings.addOnSettingsChangeHandlers(this.createClient.bind(this)); } private static formatError(