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) {