From bd3e91ba65c5f6185d72056ddaa5de9a1f1446b2 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 14 Jun 2024 08:44:46 +0200 Subject: [PATCH] Fix regression reloading pages changed "on disk" --- web/client.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/client.ts b/web/client.ts index eabed441..c96eecbf 100644 --- a/web/client.ts +++ b/web/client.ts @@ -600,13 +600,12 @@ export class Client { "file:changed", ( path: string, - localChange: boolean, + _localChange: boolean, oldHash: number, newHash: number, ) => { // Only reload when watching the current page (to avoid reloading when switching pages) if ( - !localChange && this.space.watchInterval && `${this.currentPage}.md` === path && // Avoid reloading if the page was just saved (5s window) (!lastSaveTimestamp || (lastSaveTimestamp < Date.now() - 5000))