From 9f6890b769c4375936a71d56a55f5759877dda1c Mon Sep 17 00:00:00 2001 From: Gyunseo Lee Date: Mon, 18 Dec 2023 17:56:12 +0900 Subject: [PATCH] feat: set the polling mode based on path type --- packages/bruno-electron/src/app/watcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/app/watcher.js b/packages/bruno-electron/src/app/watcher.js index 51fa79f6f..fa548c6e8 100644 --- a/packages/bruno-electron/src/app/watcher.js +++ b/packages/bruno-electron/src/app/watcher.js @@ -412,7 +412,7 @@ class Watcher { setTimeout(() => { const watcher = chokidar.watch(watchPath, { ignoreInitial: false, - usePolling: false, + usePolling: watchPath.startsWith("\\\\") ? true : false, ignored: (path) => ['node_modules', '.git'].some((s) => path.includes(s)), persistent: true, ignorePermissionErrors: true,