_dataPath userd before declared

This commit is contained in:
Jiiks 2015-10-27 23:53:18 +02:00
parent 44a9f642c5
commit ade49315ed
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,6 @@ var _userConfig = {"cache": null};
var _cacheExpired = false;
var _cacheDays = 0;
var _dataPath;
var _userFile = _dataPath + "/user.json";
// OS specific _dataPath
var _os = process.platform;
@ -35,6 +34,8 @@ if (_os == "win32") {
_dataPath = "~/Library/Application Support/discord/BetterDiscordData";
}
var _userFile = _dataPath + "/user.json";
function BetterDiscord(mainWindow) {
_mainWindow = mainWindow;
_version = _config.Core.Version;