Set app-wide user agent #827
1 changed files with 4 additions and 2 deletions
|
@ -174,6 +174,8 @@ function getPidsForProcessName(name) {
|
||||||
function createWindow () {
|
function createWindow () {
|
||||||
win = new BrowserWindow({backgroundColor: '#155B4A', minWidth: 800, minHeight: 600 }) //$color-primary
|
win = new BrowserWindow({backgroundColor: '#155B4A', minWidth: 800, minHeight: 600 }) //$color-primary
|
||||||
|
|
||||||
|
win.webContents.session.setUserAgent(`LBRY/${localVersion}`);
|
||||||
|
|
||||||
win.maximize()
|
win.maximize()
|
||||||
if (isDebug) {
|
if (isDebug) {
|
||||||
win.webContents.openDevTools();
|
win.webContents.openDevTools();
|
||||||
|
@ -240,7 +242,7 @@ function createTray () {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
// Using @2x for mac retina screens so the icon isn't blurry
|
// 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
|
// 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 {
|
} else {
|
||||||
iconPath = path.join(app.getAppPath(), "/dist/img/fav/32x32.png");
|
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) => {
|
ipcMain.on('set-auth-token', (event, token) => {
|
||||||
keytar.setPassword("LBRY", "auth_token", token ? token.toString().trim() : null);
|
keytar.setPassword("LBRY", "auth_token", token ? token.toString().trim() : null);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue