Browse Source

fix use of writeFile

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
39de13c27f
  1. 2
      webapp/server.js

2
webapp/server.js

@ -356,7 +356,7 @@ app.post('/set-skin', function (req, res){
} }
else { else {
var thisData = destNameNoExt + ".png"; var thisData = destNameNoExt + ".png";
fs.writeFile(thisData, indirectPath, function(err, data) { fs.writeFile(indirectPath, thisData, function(err, data) {
if (err) console.log(err); if (err) console.log(err);
console.log("Successfully wrote " + thisData console.log("Successfully wrote " + thisData
+ " to "+indirectPath+"."); + " to "+indirectPath+".");

Loading…
Cancel
Save