diff --git a/config.js b/config.js index 2ff8438a..1fb24458 100644 --- a/config.js +++ b/config.js @@ -3,8 +3,8 @@ var path = require('path') module.exports = { APP_COPYRIGHT: 'Copyright © 2014-2016 The WebTorrent Project', - APP_FILE_ICON: path.join(pathToStatic(), 'WebTorrentFile'), - APP_ICON: path.join(pathToStatic(), 'WebTorrent'), + APP_FILE_ICON: path.join(__dirname, 'static', 'WebTorrentFile'), + APP_ICON: path.join(__dirname, 'static', 'WebTorrent'), APP_NAME: 'WebTorrent', CONFIG_PATH: applicationConfigPath('WebTorrent'), @@ -15,7 +15,7 @@ module.exports = { IS_PRODUCTION: isProduction(), - STATIC_PATH: pathToStatic(), + STATIC_PATH: path.join(__dirname, 'static'), SOUND_ADD: 'file://' + path.join(__dirname, 'static', 'sound', 'add.wav'), SOUND_DELETE: 'file://' + path.join(__dirname, 'static', 'sound', 'delete.wav'), @@ -41,9 +41,3 @@ function isProduction () { return !/\/electron$/.test(process.execPath) } } - -function pathToStatic () { - return isProduction() - ? path.join(process.resourcesPath, 'app.asar.unpacked', 'static') - : path.join(__dirname, 'static') -}