mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 17:20:30 +00:00
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:
parent
e18851934a
commit
4099f44fa5
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue