bindings from macos
This commit is contained in:
parent
dfd445d422
commit
6ad588cba0
1 changed files with 4 additions and 2 deletions
|
|
@ -732,8 +732,10 @@ async updateRecordingRetentionPeriod(period: string) : Promise<Result<null, stri
|
|||
}
|
||||
},
|
||||
/**
|
||||
* Stub implementation for non-macOS platforms
|
||||
* Always returns false since laptop detection is macOS-specific
|
||||
* Checks if the Mac is a laptop by detecting battery presence
|
||||
*
|
||||
* This uses pmset to check for battery information.
|
||||
* Returns true if a battery is detected (laptop), false otherwise (desktop)
|
||||
*/
|
||||
async isLaptop() : Promise<Result<boolean, string>> {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue