⬆️ Upgrade(electron): electron from 4 to 5

This commit is contained in:
PiEgg
2019-05-05 22:22:03 +08:00
parent e81b8f428c
commit 9344d7d762
4 changed files with 14 additions and 5 deletions

View File

@@ -201,6 +201,8 @@ const createWindow = () => {
transparent: true,
vibrancy: 'ultra-dark',
webPreferences: {
nodeIntegration: true,
nodeIntegrationInWorker: true,
backgroundThrottling: false
}
})
@@ -232,7 +234,9 @@ const createMiniWidow = () => {
transparent: process.platform !== 'linux',
icon: `${__static}/logo.png`,
webPreferences: {
backgroundThrottling: false
backgroundThrottling: false,
nodeIntegration: true,
nodeIntegrationInWorker: true
}
}
@@ -265,6 +269,8 @@ const createSettingWindow = () => {
titleBarStyle: 'hidden',
webPreferences: {
backgroundThrottling: false,
nodeIntegration: true,
nodeIntegrationInWorker: true,
webSecurity: false
}
}

View File

@@ -23,6 +23,8 @@ const createRenameWindow = (win) => {
resizable: false,
vibrancy: 'ultra-dark',
webPreferences: {
nodeIntegration: true,
nodeIntegrationInWorker: true,
backgroundThrottling: false
}
}