File tree 1 file changed +0
-21
lines changed
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ const debug = require('debug')('Franz:AppStore');
30
30
const {
31
31
app,
32
32
screen,
33
- powerMonitor,
34
33
nativeTheme,
35
34
} = remote ;
36
35
@@ -199,26 +198,6 @@ export default class AppStore extends Store {
199
198
gaPage ( pathname ) ;
200
199
} ) ;
201
200
202
- powerMonitor . on ( 'suspend' , ( ) => {
203
- debug ( 'System suspended starting timer' ) ;
204
-
205
- this . timeSuspensionStart = moment ( ) ;
206
- } ) ;
207
-
208
- powerMonitor . on ( 'resume' , ( ) => {
209
- debug ( 'System resumed, last suspended on' , this . timeSuspensionStart . toString ( ) ) ;
210
-
211
- if ( this . timeSuspensionStart . add ( 10 , 'm' ) . isBefore ( moment ( ) ) ) {
212
- debug ( 'Reloading services, user info and features' ) ;
213
-
214
- setTimeout ( ( ) => {
215
- window . location . reload ( ) ;
216
- } , ms ( '2s' ) ) ;
217
-
218
- statsEvent ( 'resumed-app' ) ;
219
- }
220
- } ) ;
221
-
222
201
// macOS catalina notifications hack
223
202
// notifications got stuck after upgrade but forcing a notification
224
203
// via `new Notification` triggered the permission request
You can’t perform that action at this time.
0 commit comments