mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
Update electron to 11.1.1 (#247)
This commit is contained in:
@@ -16,11 +16,12 @@ export function isMacAppStore() {
|
||||
|
||||
export function isWindowsStore() {
|
||||
const isWindows = process.platform === 'win32';
|
||||
if (isWindows && !process.windowsStore &&
|
||||
let windowsStore = process.windowsStore;
|
||||
if (isWindows && !windowsStore &&
|
||||
process.resourcesPath.indexOf('8bitSolutionsLLC.bitwardendesktop_') > -1) {
|
||||
process.windowsStore = true;
|
||||
windowsStore = true;
|
||||
}
|
||||
return isWindows && process.windowsStore && process.windowsStore === true;
|
||||
return isWindows && windowsStore === true;
|
||||
}
|
||||
|
||||
export function isSnapStore() {
|
||||
|
||||
@@ -110,7 +110,7 @@ export class WindowMain {
|
||||
minHeight: 500,
|
||||
x: this.windowStates[Keys.mainWindowSize].x,
|
||||
y: this.windowStates[Keys.mainWindowSize].y,
|
||||
title: app.getName(),
|
||||
title: app.name,
|
||||
icon: process.platform === 'linux' ? path.join(__dirname, '/images/icon.png') : undefined,
|
||||
titleBarStyle: this.hideTitleBar && process.platform === 'darwin' ? 'hiddenInset' : undefined,
|
||||
show: false,
|
||||
@@ -119,6 +119,7 @@ export class WindowMain {
|
||||
nodeIntegration: true,
|
||||
webviewTag: true,
|
||||
backgroundThrottling: false,
|
||||
enableRemoteModule: true, // TODO: This needs to be removed prior to Electron 14.
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user