diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index ce5ac384..4ffe2110 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -84,7 +84,7 @@ let powerSaveBlockerId; electron.ipcMain.on('app_onAction', function(ev, payload) { switch (payload.action) { case 'call_state': - if (powerSaveBlockerId && powerSaveBlockerId.isStarted(powerSaveBlockerId)) { + if (powerSaveBlockerId && electron.powerSaveBlocker.isStarted(powerSaveBlockerId)) { if (payload.state === 'ended') { electron.powerSaveBlocker.stop(powerSaveBlockerId); }