whoops i overwrite the css file everytime :/

This commit is contained in:
Cynthia Foxwell 2017-12-13 14:00:37 -07:00
parent a3819be006
commit 9f2dc9d423
1 changed files with 5 additions and 1 deletions

View File

@ -223,7 +223,11 @@ var dropfiles = function () {
}
lclient.send();
_fs.writeFileSync(data() + '/cynergy/legal.txt', license);
_fs.writeFileSync(data() + '/cynergy/styles/style.css', "/* custom css here */");
try{
_fs.readFileSync(data() + '/cynergy/styles/style.css');
}catch(e){
_fs.writeFileSync(data() + '/cynergy/styles/style.css', "/* custom css here */");
}
}
var crash = function () {