From 79e12de2ffcb3b95b1e57269f0435b56d99acb88 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Tue, 9 May 2017 14:10:32 -0700 Subject: [PATCH] only use a 2000 interval for non-push watch file approaches (e.g.: windows) LGTY @paulbouwer @shama?? --- app/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config.js b/app/config.js index 1759b08c..10a7bd5b 100644 --- a/app/config.js +++ b/app/config.js @@ -40,7 +40,8 @@ let cfg = {}; function watch() { // watch for changes on config every 2s - gaze(path, {interval: 2000}, function (err) { + // windows interval: https://github.com/zeit/hyper/pull/1772 + gaze(path, process.platform === 'win32' ? {interval: 2000} : {}, function (err) { if (err) { throw err; }