Add (BETA) to window title

Also fix a bug: fix relative paths to the default torrents.
This commit is contained in:
DC
2016-03-25 00:21:02 -07:00
parent 0d5ff2d964
commit 3928564314
4 changed files with 10 additions and 9 deletions

View File

@@ -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 */,

View File

@@ -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,

View File

@@ -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) {

View File

@@ -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',