_dataPath userd before declared
This commit is contained in:
parent
44a9f642c5
commit
ade49315ed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue