diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-06-03 16:46:25 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-06-03 16:46:25 +0530 |
commit | 83af702f1cae043902e23e9358c3e036ddca8d33 (patch) | |
tree | 3b27fa06fd890406224a0cc4e074d9bd9457230d /src/webex/pages/welcome.tsx | |
parent | 77c61e738181561979da64a480fe21f70f6fe1f4 (diff) | |
download | wallet-core-83af702f1cae043902e23e9358c3e036ddca8d33.tar.xz |
re-indent with latest version of prettier
Diffstat (limited to 'src/webex/pages/welcome.tsx')
-rw-r--r-- | src/webex/pages/welcome.tsx | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/webex/pages/welcome.tsx b/src/webex/pages/welcome.tsx index 8d4920cac..a7c24d659 100644 --- a/src/webex/pages/welcome.tsx +++ b/src/webex/pages/welcome.tsx @@ -108,19 +108,16 @@ export function PermissionsCheckbox(): JSX.Element { const granted = await new Promise<boolean>((resolve, reject) => { // We set permissions here, since apparently FF wants this to be done // as the result of an input event ... - getPermissionsApi().request( - extendedPermissions, - (granted: boolean) => { - if (chrome.runtime.lastError) { - console.error("error requesting permissions"); - console.error(chrome.runtime.lastError); - reject(chrome.runtime.lastError); - return; - } - console.log("permissions granted:", granted); - resolve(granted); - }, - ); + getPermissionsApi().request(extendedPermissions, (granted: boolean) => { + if (chrome.runtime.lastError) { + console.error("error requesting permissions"); + console.error(chrome.runtime.lastError); + reject(chrome.runtime.lastError); + return; + } + console.log("permissions granted:", granted); + resolve(granted); + }); }); const res = await wxApi.setExtendedPermissions(granted); console.log(res); |