Add (BETA) to window title
Also fix a bug: fix relative paths to the default torrents.
This commit is contained in:
@@ -12,6 +12,7 @@ module.exports = {
|
|||||||
APP_NAME: APP_NAME,
|
APP_NAME: APP_NAME,
|
||||||
APP_TEAM: APP_TEAM,
|
APP_TEAM: APP_TEAM,
|
||||||
APP_VERSION: APP_VERSION,
|
APP_VERSION: APP_VERSION,
|
||||||
|
APP_WINDOW_TITLE: APP_NAME + ' (BETA)',
|
||||||
|
|
||||||
AUTO_UPDATE_URL: 'https://webtorrent.io/app/update?version=' + APP_VERSION,
|
AUTO_UPDATE_URL: 'https://webtorrent.io/app/update?version=' + APP_VERSION,
|
||||||
AUTO_UPDATE_CHECK_STARTUP_DELAY: 10 * 1000 /* 10 seconds */,
|
AUTO_UPDATE_CHECK_STARTUP_DELAY: 10 * 1000 /* 10 seconds */,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ function createMainWindow () {
|
|||||||
minWidth: 375,
|
minWidth: 375,
|
||||||
minHeight: 38 + (120 * 2), // header height + 2 torrents
|
minHeight: 38 + (120 * 2), // header height + 2 torrents
|
||||||
show: false, // Hide window until DOM finishes loading
|
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)
|
titleBarStyle: 'hidden-inset', // Hide OS chrome, except traffic light buttons (OS X)
|
||||||
useContentSize: true, // Specify web page size without OS chrome
|
useContentSize: true, // Specify web page size without OS chrome
|
||||||
width: 450,
|
width: 450,
|
||||||
|
|||||||
@@ -744,7 +744,7 @@ function openFolder (torrentSummary) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function closePlayer (cb) {
|
function closePlayer (cb) {
|
||||||
state.window.title = config.APP_NAME
|
state.window.title = config.APP_WINDOW_TITLE
|
||||||
update()
|
update()
|
||||||
|
|
||||||
if (state.window.isFullScreen) {
|
if (state.window.isFullScreen) {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
bounds: null, /* {x, y, width, height } */
|
bounds: null, /* {x, y, width, height } */
|
||||||
isFocused: true,
|
isFocused: true,
|
||||||
isFullScreen: false,
|
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 */
|
selectedInfoHash: null, /* the torrent we've selected to view details. see state.torrents */
|
||||||
playing: { /* the media (audio or video) that we're currently playing */
|
playing: { /* the media (audio or video) that we're currently playing */
|
||||||
@@ -64,8 +64,8 @@ module.exports = {
|
|||||||
status: 'paused',
|
status: 'paused',
|
||||||
infoHash: '88594aaacbde40ef3e2510c47374ec0aa396c08e',
|
infoHash: '88594aaacbde40ef3e2510c47374ec0aa396c08e',
|
||||||
displayName: 'Big Buck Bunny',
|
displayName: 'Big Buck Bunny',
|
||||||
posterURL: '../static/bigBuckBunny.jpg',
|
posterURL: path.join('..', 'static', 'bigBuckBunny.jpg'),
|
||||||
torrentPath: '../static/bigBuckBunny.torrent',
|
torrentPath: path.join('.', 'static', 'bigBuckBunny.torrent'),
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
'name': 'bbb_sunflower_1080p_30fps_normal.mp4',
|
'name': 'bbb_sunflower_1080p_30fps_normal.mp4',
|
||||||
@@ -79,8 +79,8 @@ module.exports = {
|
|||||||
status: 'paused',
|
status: 'paused',
|
||||||
infoHash: '6a9759bffd5c0af65319979fb7832189f4f3c35d',
|
infoHash: '6a9759bffd5c0af65319979fb7832189f4f3c35d',
|
||||||
displayName: 'Sintel',
|
displayName: 'Sintel',
|
||||||
posterURL: '../static/sintel.jpg',
|
posterURL: path.join('..', 'static', 'sintel.jpg'),
|
||||||
torrentPath: '../static/sintel.torrent',
|
torrentPath: path.join('.', 'static', 'sintel.torrent'),
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
'name': 'sintel.mp4',
|
'name': 'sintel.mp4',
|
||||||
@@ -94,8 +94,8 @@ module.exports = {
|
|||||||
status: 'paused',
|
status: 'paused',
|
||||||
infoHash: '02767050e0be2fd4db9a2ad6c12416ac806ed6ed',
|
infoHash: '02767050e0be2fd4db9a2ad6c12416ac806ed6ed',
|
||||||
displayName: 'Tears of Steel',
|
displayName: 'Tears of Steel',
|
||||||
posterURL: '../static/tearsOfSteel.jpg',
|
posterURL: path.join('..', 'static', 'tearsOfSteel.jpg'),
|
||||||
torrentPath: '../static/tearsOfSteel.torrent',
|
torrentPath: path.join('.', 'static', 'tearsOfSteel.torrent'),
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
'name': 'tears_of_steel_1080p.webm',
|
'name': 'tears_of_steel_1080p.webm',
|
||||||
|
|||||||
Reference in New Issue
Block a user