From 855b31117531b99be8d01725be94a421e870bb3d Mon Sep 17 00:00:00 2001 From: cryptozeny <37016180+cryptozeny@users.noreply.github.com> Date: Wed, 9 Oct 2019 02:53:38 +0900 Subject: [PATCH] Fix node-watch warning zone117x/node-open-mining-portal#649 (node:4020) DeprecationWarning: (node-watch) First param in callback function is replaced with event name since 0.5.0, use (evt, filename) => {} if you want to get the filename --- libs/website.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/website.js b/libs/website.js index b570c244a..00887dc1a 100644 --- a/libs/website.js +++ b/libs/website.js @@ -95,7 +95,7 @@ module.exports = function(logger){ //If an html file was changed reload it - watch('website', function(filename){ + watch('website', function(evt, filename){ var basename = path.basename(filename); if (basename in pageFiles){ console.log(filename);