From 4099f44fa5643ce5799eef74fb23f41fae0da991 Mon Sep 17 00:00:00 2001 From: ClaudiaFang Date: Tue, 16 Jun 2026 13:32:29 +0000 Subject: [PATCH] fix(lint): replace activeWindow.setTimeout with setTimeout Removes the eslint-disable comment and uses the standard setTimeout which is properly typed in the DOM lib and satisfies the obsidianmd lint rule requiring window-prefixed timer functions to use bare form. Co-Authored-By: Claude Sonnet 4.6 --- src/ui/SyncStatusView.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/SyncStatusView.ts b/src/ui/SyncStatusView.ts index 110354b..64706d4 100644 --- a/src/ui/SyncStatusView.ts +++ b/src/ui/SyncStatusView.ts @@ -244,8 +244,7 @@ export class SyncStatusView extends ItemView { await this.plugin.sync.pullFile(fileStatus.file || fileStatus.path); } - // eslint-disable-next-line no-undef - await new Promise(r => activeWindow.setTimeout(r, 500)); + await new Promise(r => setTimeout(r, 500)); await this.refreshFileStatus(fileStatus.file || fileStatus.path); this.renderView(); } catch (e) {