From b7315790be35eff9640e169f078d400ae1bd1a27 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Mon, 11 Jan 2016 15:02:38 -0800 Subject: [PATCH] Replace custom app data resolution code with app.getPath --- console/src/main.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/console/src/main.js b/console/src/main.js index 882ef65191..c4142d44a8 100644 --- a/console/src/main.js +++ b/console/src/main.js @@ -26,15 +26,7 @@ var ProcessGroup = hfprocess.ProcessGroup; var ProcessGroupStates = hfprocess.ProcessGroupStates; function getApplicationDataDirectory() { - var osType = os.type(); - var rootDirectory; - if (osType == 'Windows_NT') { - rootDirectory = process.env.APPDATA; - } else if (osType == 'Darwin') { - rootDirecotry = process.env.HOME + 'Library/Application Support'; - } else { - rootDirectory = '/usr/local/share'; - } + var rootDirectory = app.getPath('appData'); return path.join(rootDirectory, '/High Fidelity/Console'); }