Use config.APP_NAME throughout

This commit is contained in:
Feross Aboukhadijeh
2016-03-07 15:47:23 -08:00
parent 0b7f97ba6b
commit 2a423a8cb3
6 changed files with 15 additions and 11 deletions

View File

@@ -1,6 +0,0 @@
var path = require('path')
module.exports = {
APP_NAME: 'WebTorrent',
INDEX: 'file://' + path.resolve(__dirname, '..', 'renderer', 'index.html')
}

View File

@@ -1,3 +1,4 @@
var config = require('../config')
var debug = require('debug')('webtorrent-app:menu')
var electron = require('electron')
var windows = require('./windows')
@@ -205,7 +206,7 @@ function getMenuTemplate () {
role: 'help',
submenu: [
{
label: 'Learn more about WebTorrent',
label: 'Learn more about ' + config.APP_NAME,
click: function () { electron.shell.openExternal('https://webtorrent.io') }
},
{

View File

@@ -1,6 +1,6 @@
var electron = require('electron')
var config = require('../config')
var debug = require('debug')('webtorrent-app:windows')
var config = require('./config')
var electron = require('electron')
var app = electron.app