diff --git a/lib/server/appcache.js b/lib/server/appcache.js index 320a61fb..3e8964fc 100644 --- a/lib/server/appcache.js +++ b/lib/server/appcache.js @@ -64,15 +64,17 @@ function onWatch (pFileName){ return function(pEvent, pFileName){ console.log(pEvent); console.log('file ' + pFileName + ' is changed'); - + processManifest(); }; } function onWatchFile(pFileName){ return function(pCurr, pPrev){ console.log(pCurr); - if(pCurr.mtime !== pPrev.mtime) + if(pCurr.mtime !== pPrev.mtime){ console.log('file ' + pFileName + ' is changed'); + processManifest(); + } }; }