mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
454fab2e81
commit
1a804e5ba2
1 changed files with 4 additions and 6 deletions
|
|
@ -70,7 +70,6 @@ function onWatch (pFileName){
|
|||
|
||||
function onWatchFile(pFileName){
|
||||
return function(pCurr, pPrev){
|
||||
console.log(pCurr);
|
||||
if(pCurr.mtime !== pPrev.mtime){
|
||||
console.log('file ' + pFileName + ' is changed');
|
||||
processManifest();
|
||||
|
|
@ -85,11 +84,10 @@ function processManifest(){
|
|||
NamesList_s +
|
||||
'NETWORK:\n' +
|
||||
'*';
|
||||
|
||||
console.log(Manifest);
|
||||
fs.writeFile('cloudcmd.appcache', Manifest, function(){
|
||||
console.log('cloudcmd.appcache refreshed');
|
||||
});
|
||||
|
||||
fs.writeFile('cloudcmd.appcache', Manifest, function(){
|
||||
console.log('cloudcmd.appcache refreshed');
|
||||
});
|
||||
}
|
||||
|
||||
/* function do safe require of needed module */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue