From ade49315edc751de7b15bef358a694aab122fa8d Mon Sep 17 00:00:00 2001 From: Jiiks Date: Tue, 27 Oct 2015 23:53:18 +0200 Subject: [PATCH] _dataPath userd before declared --- lib/BetterDiscord.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/BetterDiscord.js b/lib/BetterDiscord.js index 0367a141..0b781e0e 100644 --- a/lib/BetterDiscord.js +++ b/lib/BetterDiscord.js @@ -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;