mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
docs: correct powerSaveBlocker.stop(id) return type (#39320)
doc: correct powerSaveBlocker.stop return type
This commit is contained in:
@@ -904,7 +904,8 @@ app.whenReady().then(() => {
|
||||
const id = powerSaveBlocker.start('prevent-display-sleep');
|
||||
console.log(powerSaveBlocker.isStarted(id));
|
||||
|
||||
powerSaveBlocker.stop(id);
|
||||
const stopped = powerSaveBlocker.stop(id);
|
||||
console.log(`The powerSaveBlocker is ${stopped ? 'stopped' : 'not stopped'}`);
|
||||
|
||||
// protocol
|
||||
// https://github.com/electron/electron/blob/main/docs/api/protocol.md
|
||||
|
||||
Reference in New Issue
Block a user