mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-01 23:01:28 +01:00
hideTitleBar param
This commit is contained in:
parent
3d958279d2
commit
37d9afc58b
@ -18,7 +18,8 @@ export class WindowMain {
|
|||||||
private windowStateChangeTimer: NodeJS.Timer;
|
private windowStateChangeTimer: NodeJS.Timer;
|
||||||
private windowStates: { [key: string]: any; } = {};
|
private windowStates: { [key: string]: any; } = {};
|
||||||
|
|
||||||
constructor(private storageService: StorageService, private defaultWidth = 950, private defaultHeight = 600) { }
|
constructor(private storageService: StorageService, private hideTitleBar = false,
|
||||||
|
private defaultWidth = 950, private defaultHeight = 600) { }
|
||||||
|
|
||||||
init(): Promise<any> {
|
init(): Promise<any> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@ -94,7 +95,7 @@ export class WindowMain {
|
|||||||
y: this.windowStates[Keys.mainWindowSize].y,
|
y: this.windowStates[Keys.mainWindowSize].y,
|
||||||
title: app.getName(),
|
title: app.getName(),
|
||||||
icon: process.platform === 'linux' ? path.join(__dirname, '/images/icon.png') : undefined,
|
icon: process.platform === 'linux' ? path.join(__dirname, '/images/icon.png') : undefined,
|
||||||
titleBarStyle: process.platform === 'darwin' ? 'hiddenInset' : undefined,
|
titleBarStyle: this.hideTitleBar && process.platform === 'darwin' ? 'hiddenInset' : undefined,
|
||||||
show: false,
|
show: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user