Simplify permissions popup IPC

This commit is contained in:
David Sanders 2021-11-05 01:47:32 -07:00
parent c822c45310
commit 50dc534164
7 changed files with 18 additions and 25 deletions

6
ts/window.d.ts vendored
View file

@ -160,7 +160,10 @@ declare global {
QRCode: any;
removeSetupMenuItems: () => unknown;
showPermissionsPopup: () => Promise<void>;
showPermissionsPopup: (
forCalling: boolean,
forCamera: boolean
) => Promise<void>;
FontFace: typeof FontFace;
_: typeof Underscore;
@ -211,7 +214,6 @@ declare global {
getTitle: () => string;
waitForEmptyEventQueue: () => Promise<void>;
getVersion: () => string;
showCallingPermissionsPopup: (forCamera: boolean) => Promise<void>;
i18n: LocalizerType;
isActive: () => boolean;
isAfterVersion: (version: string, anotherVersion: string) => boolean;