Fix OSX Path
This commit is contained in:
parent
3eb646a5c0
commit
bb709a5352
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue