Skip to content

Commit

Permalink
⬆️ Upgrade(electron): electron from 4 to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed May 5, 2019
1 parent e81b8f4 commit 9344d7d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"cz-customizable": "^5.10.0",
"del": "^3.0.0",
"devtron": "^1.4.0",
"electron": "4.0.2",
"electron": "^5.0.1",
"electron-builder": "^20.38.4",
"electron-debug": "^1.4.0",
"electron-devtools-installer": "^2.2.0",
Expand Down
8 changes: 7 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ const createWindow = () => {
transparent: true,
vibrancy: 'ultra-dark',
webPreferences: {
nodeIntegration: true,
nodeIntegrationInWorker: true,
backgroundThrottling: false
}
})
Expand Down Expand Up @@ -232,7 +234,9 @@ const createMiniWidow = () => {
transparent: process.platform !== 'linux',
icon: `${__static}/logo.png`,
webPreferences: {
backgroundThrottling: false
backgroundThrottling: false,
nodeIntegration: true,
nodeIntegrationInWorker: true
}
}

Expand Down Expand Up @@ -265,6 +269,8 @@ const createSettingWindow = () => {
titleBarStyle: 'hidden',
webPreferences: {
backgroundThrottling: false,
nodeIntegration: true,
nodeIntegrationInWorker: true,
webSecurity: false
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/utils/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const createRenameWindow = (win) => {
resizable: false,
vibrancy: 'ultra-dark',
webPreferences: {
nodeIntegration: true,
nodeIntegrationInWorker: true,
backgroundThrottling: false
}
}
Expand Down
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3750,9 +3750,10 @@ electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.47:
version "1.3.115"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.115.tgz#fdaa56c19b9f7386dbf29abc1cc632ff5468ff3b"

[email protected]:
version "4.0.2"
resolved "https://registry.yarnpkg.com/electron/-/electron-4.0.2.tgz#b5e074c149841490825d0785aa2bc4f5e29bbea4"
electron@^5.0.1:
version "5.0.1"
resolved "https://registry.npm.taobao.org/electron/download/electron-5.0.1.tgz#6bd7bf4d25e9bfce4cccd629d587fba5281f95cc"
integrity sha1-a9e/TSXpv85MzNYp1Yf7pSgflcw=
dependencies:
"@types/node" "^10.12.18"
electron-download "^4.1.0"
Expand Down

0 comments on commit 9344d7d

Please sign in to comment.