diff options
author | Sebastian <sebasjm@gmail.com> | 2022-04-27 14:33:52 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-04-27 14:33:52 -0300 |
commit | 451dd746daeb57cfe0a601d1bf1f2b5506a5fc3c (patch) | |
tree | 975b98de7c3d28f62e05396a01129c69efbeb66b /packages/taler-wallet-webextension/src/platform/api.ts | |
parent | 0b8e0a0806947472181b13a3c0dda9947a326b28 (diff) | |
download | wallet-core-451dd746daeb57cfe0a601d1bf1f2b5506a5fc3c.tar.xz |
toggle permission
Diffstat (limited to 'packages/taler-wallet-webextension/src/platform/api.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/api.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/platform/api.ts b/packages/taler-wallet-webextension/src/platform/api.ts index 65bc36545..cee628a6f 100644 --- a/packages/taler-wallet-webextension/src/platform/api.ts +++ b/packages/taler-wallet-webextension/src/platform/api.ts @@ -34,9 +34,9 @@ export interface Permissions { * Compatibility API that works on multiple browsers. */ export interface CrossBrowserPermissionsApi { - contains(p: Permissions): Promise<boolean>; - request(p: Permissions): Promise<boolean>; - remove(p: Permissions): Promise<boolean>; + containsHostPermissions(): Promise<boolean>; + requestHostPermissions(): Promise<boolean>; + removeHostPermissions(): Promise<boolean>; addPermissionsListener(callback: (p: Permissions, lastError?: string) => void): void; @@ -132,6 +132,10 @@ export interface PlatformAPI { */ registerTalerHeaderListener(onHeader: (tabId: number, url: string) => void): void; /** + * Frontend API + */ + containsTalerHeaderListener(): boolean; + /** * Backend API */ registerOnInstalled(callback: () => void): void; |