File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,9 @@ reportStartupEvents();
218
218
if ( require ( 'electron-squirrel-startup' ) ) {
219
219
// We've been opened as part of a Windows install.
220
220
// squirrel-startup handles all the hard work, we just need to not do anything.
221
- app . quit ( ) ;
221
+
222
+ // Brief delay before quitting, so our analytics register
223
+ setTimeout ( ( ) => app . quit ( ) , 500 ) ;
222
224
} else {
223
225
startServer ( ) . catch ( ( err ) => {
224
226
reportError ( err ) ;
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ export function reportStartupEvents() {
15
15
16
16
// Report installer install/update/uninstall events
17
17
if ( cmd === '--squirrel-install' ) {
18
- analytics . event ( " Setup" , " Install" ) . send ( ) ;
18
+ analytics . event ( ' Setup' , ' Install' ) . send ( ) ;
19
19
} else if ( cmd === '--squirrel-updated' ) {
20
- analytics . event ( " Setup" , " Update" ) . send ( ) ;
20
+ analytics . event ( ' Setup' , ' Update' ) . send ( ) ;
21
21
} else if ( cmd === '--squirrel-uninstall' ) {
22
- analytics . event ( " Setup" , " Uninstall" ) . send ( ) ;
22
+ analytics . event ( ' Setup' , ' Uninstall' ) . send ( ) ;
23
23
}
24
24
}
25
25
26
26
if ( isFirstRun ( ) ) {
27
- analytics . event ( " Setup" , " First run" ) . send ( ) ;
27
+ analytics . event ( ' Setup' , ' First run' , process . platform ) . send ( ) ;
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments