diff --git a/config.js b/config.js index b0e6fbec..137fe903 100644 --- a/config.js +++ b/config.js @@ -12,6 +12,7 @@ module.exports = { APP_NAME: APP_NAME, APP_TEAM: APP_TEAM, APP_VERSION: APP_VERSION, + APP_WINDOW_TITLE: APP_NAME + ' (BETA)', AUTO_UPDATE_URL: 'https://webtorrent.io/app/update?version=' + APP_VERSION, AUTO_UPDATE_CHECK_STARTUP_DELAY: 10 * 1000 /* 10 seconds */, diff --git a/main/windows.js b/main/windows.js index 1c52f55a..0aeb6bb1 100644 --- a/main/windows.js +++ b/main/windows.js @@ -19,7 +19,7 @@ function createMainWindow () { minWidth: 375, minHeight: 38 + (120 * 2), // header height + 2 torrents show: false, // Hide window until DOM finishes loading - title: config.APP_NAME, + title: config.APP_WINDOW_TITLE, titleBarStyle: 'hidden-inset', // Hide OS chrome, except traffic light buttons (OS X) useContentSize: true, // Specify web page size without OS chrome width: 450, diff --git a/renderer/index.js b/renderer/index.js index cd9f3478..0dd9b3ee 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -744,7 +744,7 @@ function openFolder (torrentSummary) { } function closePlayer (cb) { - state.window.title = config.APP_NAME + state.window.title = config.APP_WINDOW_TITLE update() if (state.window.isFullScreen) { diff --git a/renderer/state.js b/renderer/state.js index f27b4f06..c626acfb 100644 --- a/renderer/state.js +++ b/renderer/state.js @@ -17,7 +17,7 @@ module.exports = { bounds: null, /* {x, y, width, height } */ isFocused: true, isFullScreen: false, - title: config.APP_NAME /* current window title */ + title: config.APP_WINDOW_TITLE }, selectedInfoHash: null, /* the torrent we've selected to view details. see state.torrents */ playing: { /* the media (audio or video) that we're currently playing */ @@ -64,8 +64,8 @@ module.exports = { status: 'paused', infoHash: '88594aaacbde40ef3e2510c47374ec0aa396c08e', displayName: 'Big Buck Bunny', - posterURL: '../static/bigBuckBunny.jpg', - torrentPath: '../static/bigBuckBunny.torrent', + posterURL: path.join('..', 'static', 'bigBuckBunny.jpg'), + torrentPath: path.join('.', 'static', 'bigBuckBunny.torrent'), files: [ { 'name': 'bbb_sunflower_1080p_30fps_normal.mp4', @@ -79,8 +79,8 @@ module.exports = { status: 'paused', infoHash: '6a9759bffd5c0af65319979fb7832189f4f3c35d', displayName: 'Sintel', - posterURL: '../static/sintel.jpg', - torrentPath: '../static/sintel.torrent', + posterURL: path.join('..', 'static', 'sintel.jpg'), + torrentPath: path.join('.', 'static', 'sintel.torrent'), files: [ { 'name': 'sintel.mp4', @@ -94,8 +94,8 @@ module.exports = { status: 'paused', infoHash: '02767050e0be2fd4db9a2ad6c12416ac806ed6ed', displayName: 'Tears of Steel', - posterURL: '../static/tearsOfSteel.jpg', - torrentPath: '../static/tearsOfSteel.torrent', + posterURL: path.join('..', 'static', 'tearsOfSteel.jpg'), + torrentPath: path.join('.', 'static', 'tearsOfSteel.torrent'), files: [ { 'name': 'tears_of_steel_1080p.webm',