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 <noreply@anthropic.com>
This commit is contained in:
ClaudiaFang 2026-06-16 13:32:29 +00:00
parent e18851934a
commit 4099f44fa5

View file

@ -244,8 +244,7 @@ export class SyncStatusView extends ItemView {
await this.plugin.sync.pullFile(fileStatus.file || fileStatus.path); await this.plugin.sync.pullFile(fileStatus.file || fileStatus.path);
} }
// eslint-disable-next-line no-undef await new Promise(r => setTimeout(r, 500));
await new Promise(r => activeWindow.setTimeout(r, 500));
await this.refreshFileStatus(fileStatus.file || fileStatus.path); await this.refreshFileStatus(fileStatus.file || fileStatus.path);
this.renderView(); this.renderView();
} catch (e) { } catch (e) {