Fix warning in node 7

This commit is contained in:
Calvin Montgomery 2016-11-17 23:01:20 -08:00
parent aa06884bd6
commit a624f45493
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.24.1",
"version": "3.24.2",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -10,17 +10,17 @@ module.exports = {
Logger.syslog.log("Starting CyTube v" + VERSION);
var chanlogpath = path.join(__dirname, "../chanlogs");
fs.exists(chanlogpath, function (exists) {
exists || fs.mkdir(chanlogpath);
exists || fs.mkdirSync(chanlogpath);
});
var chandumppath = path.join(__dirname, "../chandump");
fs.exists(chandumppath, function (exists) {
exists || fs.mkdir(chandumppath);
exists || fs.mkdirSync(chandumppath);
});
var gdvttpath = path.join(__dirname, "../google-drive-subtitles");
fs.exists(gdvttpath, function (exists) {
exists || fs.mkdir(gdvttpath);
exists || fs.mkdirSync(gdvttpath);
});
singleton = new Server();
return singleton;