From 3c0e84f6d1c559d9b776c23c5310a5b43a13a0d2 Mon Sep 17 00:00:00 2001 From: "@racascou" Date: Fri, 4 Mar 2016 19:23:01 -0300 Subject: [PATCH] Don't touch process.stdin Commenting the lines that refer to `process.stdin` prevents the windows error messages on https://github.com/Jam3/devtool/issues/42 --- lib/preload.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/preload.js b/lib/preload.js index 154b6be..05c3523 100644 --- a/lib/preload.js +++ b/lib/preload.js @@ -114,16 +114,16 @@ // renderer streams should have same isTTY as main var isTTY = globals._processTTY; - process.stdin.isTTY = isTTY.stdin; + //process.stdin.isTTY = isTTY.stdin; process.stdout.isTTY = isTTY.stdout; process.stderr.isTTY = isTTY.stderr; - process.stdin._read = function () { - this.push(''); - }; + //process.stdin._read = function () { + // this.push(''); + //}; // send along any stdin - ipc.on('stdin', function (event, data) { - process.stdin.push(data); - }); + // ipc.on('stdin', function (event, data) { + // process.stdin.push(data); + //}); } })();