In prerelease, enable background throttling when not on a call

This commit is contained in:
Evan Hahn 2021-09-28 14:00:22 -05:00 committed by GitHub
parent 2f7226e200
commit 942ce16610
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 59 additions and 2 deletions

View file

@ -15,7 +15,11 @@ export class Context {
public readonly nativeThemeListener;
constructor(ipc: MinimalIPC) {
constructor(private readonly ipc: MinimalIPC) {
this.nativeThemeListener = createNativeThemeListener(ipc, window);
}
setIsCallActive(isCallActive: boolean): void {
this.ipc.send('set-is-call-active', isCallActive);
}
}