diff options
author | Sebastian <sebasjm@gmail.com> | 2022-09-12 14:28:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-09-12 14:28:53 -0300 |
commit | ad63d4c0e1ab249362e1f684ac9dbe5fae2ef34e (patch) | |
tree | dfc38c13a23e45f4916071c76e26049a57ebd63b /packages/taler-wallet-webextension/src/platform/firefox.ts | |
parent | 27201416c7d234361507e6055ce7ed42c11c650e (diff) | |
download | wallet-core-ad63d4c0e1ab249362e1f684ac9dbe5fae2ef34e.tar.xz |
add clipboard perms
Diffstat (limited to 'packages/taler-wallet-webextension/src/platform/firefox.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/firefox.ts | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/packages/taler-wallet-webextension/src/platform/firefox.ts b/packages/taler-wallet-webextension/src/platform/firefox.ts index a56e21f24..943168956 100644 --- a/packages/taler-wallet-webextension/src/platform/firefox.ts +++ b/packages/taler-wallet-webextension/src/platform/firefox.ts @@ -16,9 +16,12 @@ import { CrossBrowserPermissionsApi, Permissions, PlatformAPI } from "./api.js"; import chromePlatform, { - containsHostPermissions as chromeContains, - removeHostPermissions as chromeRemove, - requestHostPermissions as chromeRequest, + containsHostPermissions as chromeHostContains, + removeHostPermissions as chromeHostRemove, + requestHostPermissions as chromeHostRequest, + containsClipboardPermissions as chromeClipContains, + removeClipboardPermissions as chromeClipRemove, + requestClipboardPermissions as chromeClipRequest, } from "./chrome.js"; const api: PlatformAPI = { @@ -43,9 +46,12 @@ function addPermissionsListener(callback: (p: Permissions) => void): void { function getPermissionsApi(): CrossBrowserPermissionsApi { return { addPermissionsListener, - containsHostPermissions: chromeContains, - requestHostPermissions: chromeRequest, - removeHostPermissions: chromeRemove, + containsHostPermissions: chromeHostContains, + requestHostPermissions: chromeHostRequest, + removeHostPermissions: chromeHostRemove, + containsClipboardPermissions: chromeClipContains, + removeClipboardPermissions: chromeClipRemove, + requestClipboardPermissions: chromeClipRequest, }; } |