Merge pull request #827 from lbryio/useragent

Set app-wide user agent
This commit is contained in:
Jeremy Kauffman 2017-12-08 10:36:17 -05:00 committed by GitHub
commit dd312794d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();