mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-3574 - Fix the condition to validate undefined (#1337)
This commit is contained in:
@@ -32,7 +32,7 @@ class AppStateHandler {
|
||||
this.id = powerSaveBlocker.start('prevent-display-sleep');
|
||||
logger.info('App-state: Prevent display to sleep, id: ' + this.id);
|
||||
} else {
|
||||
if (this.id) {
|
||||
if (this.id !== undefined) {
|
||||
logger.info('App-state: Allow display to sleep, id: ' + this.id);
|
||||
powerSaveBlocker.stop(this.id);
|
||||
this.id = undefined;
|
||||
|
||||
Reference in New Issue
Block a user