Merge remote-tracking branch 'refs/remotes/origin/master'

Conflicts:
	src/main/main.js
This commit is contained in:
Igor Gassmann 2017-12-08 14:37:06 -03:00
commit 9a786f7d48
2 changed files with 8 additions and 2 deletions

View file

@ -135,6 +135,8 @@ function createWindow () {
? new BrowserWindow({backgroundColor: '#155B4A', minWidth: 800, minHeight: 600, webPreferences: {webSecurity: false}}) ? new BrowserWindow({backgroundColor: '#155B4A', minWidth: 800, minHeight: 600, webPreferences: {webSecurity: false}})
: new BrowserWindow({backgroundColor: '#155B4A', minWidth: 800, minHeight: 600}); : new BrowserWindow({backgroundColor: '#155B4A', minWidth: 800, minHeight: 600});
win.webContents.session.setUserAgent(`LBRY/${localVersion}`);
win.maximize() win.maximize()
if (isDevelopment) { if (isDevelopment) {
win.webContents.openDevTools(); win.webContents.openDevTools();

View file

@ -280,13 +280,17 @@ export function doLoadVideo(uri) {
dispatch(doDownloadFile(uri, streamInfo)); dispatch(doDownloadFile(uri, streamInfo));
} }
}) })
.catch(error => { .catch(() => {
dispatch(doSetPlayingUri(null)); dispatch(doSetPlayingUri(null));
dispatch({ dispatch({
type: types.LOADING_VIDEO_FAILED, type: types.LOADING_VIDEO_FAILED,
data: { uri }, 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.`
)
);
}); });
}; };
} }