From 640a8d4d2107e50786dc3ab98d7e78a652eab3c3 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Sun, 9 Oct 2016 22:28:20 +0200 Subject: [PATCH] Removed argument to improve compat with older node versions Resolves #25 --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index a900666a..ae637ede 100644 --- a/client.js +++ b/client.js @@ -41,7 +41,7 @@ confirmedOrders = []; lastSignalCheck = Date.now(); // provide items -------------------------------------------------------------- // trigger when something happens to output.txt -fs.watch(config.factorioDirectory + "/script-output/output.txt", "utf8", function(eventType, filename) { +fs.watch(config.factorioDirectory + "/script-output/output.txt", function(eventType, filename) { // get array of lines in file items = fs.readFileSync(config.factorioDirectory + "/script-output/output.txt", "utf8").split("\n"); // if you found anything, reset the file