File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,15 @@ const browserWindowOpts = {
26
26
} ,
27
27
} ;
28
28
29
- const delayedHideAppIcon = ( ) =>
30
- // Setting a timeout because the showDockIcon is not currently working
31
- // See more at https://github.com/maxogden/menubar/issues/306
32
- setTimeout ( ( ) => {
33
- app . dock . hide ( ) ;
34
- } , 1500 ) ;
29
+ const delayedHideAppIcon = ( ) => {
30
+ if ( app . dock && app . dock . hide ) {
31
+ // Setting a timeout because the showDockIcon is not currently working
32
+ // See more at https://github.com/maxogden/menubar/issues/306
33
+ setTimeout ( ( ) => {
34
+ app . dock . hide ( ) ;
35
+ } , 1500 ) ;
36
+ }
37
+ } ;
35
38
36
39
app . on ( 'ready' , async ( ) => {
37
40
await onFirstRunMaybe ( ) ;
Original file line number Diff line number Diff line change 144
144
"@types/react-transition-group" : " ^4.2.4" ,
145
145
"@types/styled-components" : " ^5.0.1" ,
146
146
"css-loader" : " ^5.0.1" ,
147
- "electron" : " ^11.0.2 " ,
147
+ "electron" : " ^11.1.0 " ,
148
148
"electron-builder" : " ^22.9.1" ,
149
149
"electron-notarize" : " ^1.0.0" ,
150
150
"jest" : " ^26.6.3" ,
Original file line number Diff line number Diff line change @@ -2215,10 +2215,10 @@ electron-updater@^4.3.5:
2215
2215
lodash.isequal "^4.5.0"
2216
2216
semver "^7.3.2"
2217
2217
2218
- electron@^11.0.2 :
2219
- version "11.0.2 "
2220
- resolved "https://registry.yarnpkg.com/electron/-/electron-11.0.2. tgz#c7bd2b9abdc1446f4578dbfa22573014b6b2df58 "
2221
- integrity sha512-FTYtCm0oj8B8EJhp99BQSW2bd40xYEG/txMj+W3Ed0CNu5zVIIXb5WIrhXLvhcasN5LKy9nkmSZ+u220lCaARg ==
2218
+ electron@^11.1.0 :
2219
+ version "11.1.0 "
2220
+ resolved "https://registry.yarnpkg.com/electron/-/electron-11.1.0. tgz#8dfdf579d1eb79feef3e3d2937fc022e72129c90 "
2221
+ integrity sha512-RFAhR/852VMaRd9NSe7jprwSoG9dLc6u1GwnqRWg+/3cy/8Zrwt1Betw1lXiZH7hGuB9K2cqju83Xv5Pq5ZSGA ==
2222
2222
dependencies :
2223
2223
" @electron/get" " ^1.0.1"
2224
2224
" @types/node" " ^12.0.12"
You can’t perform that action at this time.
0 commit comments