From 6b3685ba091465d7c9d50bd86941c800066c5746 Mon Sep 17 00:00:00 2001 From: Liam Cardenas Date: Wed, 6 Dec 2017 12:38:07 -0800 Subject: [PATCH 1/2] Added more understandable error message --- src/renderer/js/redux/actions/content.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/js/redux/actions/content.js b/src/renderer/js/redux/actions/content.js index ab3b630a8..cb0b3d766 100644 --- a/src/renderer/js/redux/actions/content.js +++ b/src/renderer/js/redux/actions/content.js @@ -280,13 +280,17 @@ export function doLoadVideo(uri) { dispatch(doDownloadFile(uri, streamInfo)); } }) - .catch(error => { + .catch(() => { dispatch(doSetPlayingUri(null)); dispatch({ type: types.LOADING_VIDEO_FAILED, data: { uri }, }); - dispatch(doAlertError(error)); + dispatch( + doAlertError( + `Failed to download ${uri}, please try again. If this problem persists, visit https://lbry.io/faq/support for support.` + ) + ); }); }; } From 6adece249668430f63fe9eae9e2be6c75fa694fa Mon Sep 17 00:00:00 2001 From: Liam Cardenas Date: Thu, 7 Dec 2017 12:04:08 -0800 Subject: [PATCH 2/2] Set app-wide user agent --- src/main/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/main.js b/src/main/main.js index 5271bac4f..5baca3e30 100644 --- a/src/main/main.js +++ b/src/main/main.js @@ -174,6 +174,8 @@ function getPidsForProcessName(name) { function createWindow () { win = new BrowserWindow({backgroundColor: '#155B4A', minWidth: 800, minHeight: 600 }) //$color-primary + win.webContents.session.setUserAgent(`LBRY/${localVersion}`); + win.maximize() if (isDebug) { win.webContents.openDevTools(); @@ -240,7 +242,7 @@ function createTray () { if (process.platform === 'darwin') { // Using @2x for mac retina screens so the icon isn't blurry // file name needs to include "Template" at the end for dark menu bar - iconPath = path.join(app.getAppPath(), "/dist/img/fav/macTemplate@2x.png"); + iconPath = path.join(app.getAppPath(), "/dist/img/fav/macTemplate@2x.png"); } else { iconPath = path.join(app.getAppPath(), "/dist/img/fav/32x32.png"); } @@ -554,4 +556,4 @@ ipcMain.on('get-auth-token', (event) => { ipcMain.on('set-auth-token', (event, token) => { keytar.setPassword("LBRY", "auth_token", token ? token.toString().trim() : null); -}); \ No newline at end of file +});