Update to electron@5.0.6

This commit is contained in:
Marquis Kurt 2019-06-27 08:17:04 -04:00
parent 409325ab6f
commit ebd24626cd
3 changed files with 8 additions and 7 deletions

12
package-lock.json generated
View File

@ -6163,9 +6163,9 @@
"dev": true
},
"electron": {
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/electron/-/electron-5.0.4.tgz",
"integrity": "sha512-7QaKorvANvP+azMT7wElx33oLlqw8QxmLs7/outfH7LC5amErk4EUtWDesQ6Zgr+s5pYFbykl8ZtJ4ZGXER05g==",
"version": "5.0.6",
"resolved": "https://registry.npmjs.org/electron/-/electron-5.0.6.tgz",
"integrity": "sha512-0L53lv26eDhaaNxL6DqXGQrQOEAYbrQg40stRSb2pzrY06kwPbABzXEiaCvEsBuKUQ+9OQBbVyyvXRbLJlun/A==",
"dev": true,
"requires": {
"@types/node": "^10.12.18",
@ -6174,9 +6174,9 @@
},
"dependencies": {
"@types/node": {
"version": "10.14.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.9.tgz",
"integrity": "sha512-NelG/dSahlXYtSoVPErrp06tYFrvzj8XLWmKA+X8x0W//4MqbUyZu++giUG/v0bjAT6/Qxa8IjodrfdACyb0Fg==",
"version": "10.14.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.10.tgz",
"integrity": "sha512-V8wj+w2YMNvGuhgl/MA5fmTxgjmVHVoasfIaxMMZJV6Y8Kk+Ydpi1z2whoShDCJ2BuNVoqH/h1hrygnBxkrw/Q==",
"dev": true
}
}

View File

@ -19,7 +19,7 @@
"@types/react-router-dom": "^4.3.2",
"@types/react-swipeable-views": "latest",
"axios": "^0.19.0",
"electron": "^5.0.4",
"electron": "^5.0.6",
"electron-builder": "^20.39.0",
"emoji-mart": "^2.8.2",
"file-dialog": "^0.0.7",

View File

@ -148,6 +148,7 @@ function createWindow() {
// Watch for a change in macOS's dark mode and reload the window to apply changes
systemPreferences.subscribeNotification('AppleInterfaceThemeChangedNotification', () => {
if (mainWindow != null) {
console.log(`Dark mode: ${systemPreferences.isDarkMode()}`)
mainWindow.setVibrancy(systemPreferences.isDarkMode()? "ultra-dark": "light");
mainWindow.webContents.reload();
}