File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 41
41
"devDependencies" : {
42
42
"@electron/notarize" : " ^2.1.0" ,
43
43
"dotenv" : " ^16.3.1" ,
44
- "electron" : " ^25.3.0 " ,
44
+ "electron" : " ^25.3.1 " ,
45
45
"electron-builder" : " ^24.5.2" ,
46
46
"sumchecker" : " ^3.0.1"
47
47
}
Original file line number Diff line number Diff line change @@ -179,11 +179,11 @@ function createWindow (opt = {})
179
179
180
180
mainWindow . on ( 'close' , ( event ) =>
181
181
{
182
- const win = event . sender
183
- const index = windowsRegistry . indexOf ( win )
182
+ const win = mainWindow ;
184
183
185
- if ( __DEV__ )
184
+ if ( __DEV__ )
186
185
{
186
+ const index = windowsRegistry . indexOf ( win )
187
187
console . log ( 'Window on close' , index )
188
188
}
189
189
@@ -244,9 +244,9 @@ function createWindow (opt = {})
244
244
} )
245
245
246
246
// Emitted when the window is closed.
247
- mainWindow . on ( 'closed' , ( event /*:WindowEvent*/ ) =>
247
+ mainWindow . on ( 'closed' , ( ) =>
248
248
{
249
- const index = windowsRegistry . indexOf ( event . sender )
249
+ const index = windowsRegistry . indexOf ( mainWindow )
250
250
251
251
if ( __DEV__ )
252
252
{
Original file line number Diff line number Diff line change @@ -805,7 +805,7 @@ electron-updater@^6.1.1:
805
805
semver "^7.3.8"
806
806
typed-emitter "^2.1.0"
807
807
808
- electron@^25.3.0 :
808
+ electron@^25.3.1 :
809
809
version "25.3.1"
810
810
resolved "https://registry.yarnpkg.com/electron/-/electron-25.3.1.tgz#898cbb5e54d17ad0014123a10f5febc17638c6a9"
811
811
integrity sha512-t0QXXqgf0/P0OJ9LU3qpcBMK+wL0FRwTQfooBaaG08v5hywPzc1yplfb3l4tS1xC0Ttw8IBaKLBeEoRgxBRHjg==
You can’t perform that action at this time.
0 commit comments