Fix OSX Path

This commit is contained in:
Jiiks 2015-12-02 15:59:33 +02:00
parent 3eb646a5c0
commit bb709a5352
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ BetterDiscord.prototype.createAndCheckData = function(callback) {
//New data path
//noinspection JSUnresolvedVariable
_dataPath = _os == "win32" ? process.env.APPDATA : _os == 'darwin' ? process.env.HOME + 'Library/Preference' : '/var/local';
_dataPath = _os == "win32" ? process.env.APPDATA : _os == 'darwin' ? process.env.HOME + '/Library/Preferences' : '/var/local';
_dataPath += "/BetterDiscord";
_userFile = _dataPath + "/user.json";
@ -456,4 +456,4 @@ BetterDiscord.prototype.injectEmoteData = function(loadMe, emoteData) {
_this.getUtils().sendIcpAsync(loadMe.message);
};
exports.BetterDiscord = BetterDiscord;
exports.BetterDiscord = BetterDiscord;