From 595a0ecd49eb06cd85b0fb949ac654a7536a9e59 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 3 May 2024 21:12:36 +0200 Subject: [PATCH] fix: Ignore errors in REQUEST_NET_PERMS fixes #1509 Signed-off-by: Marcel Klehr --- src/ui/store/actions.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ui/store/actions.js b/src/ui/store/actions.js index 0d4cda4ecc..ce70b94e5f 100644 --- a/src/ui/store/actions.js +++ b/src/ui/store/actions.js @@ -166,9 +166,10 @@ export const actionsDefinition = { commit(mutations.SET_LOGIN_FLOW_STATE, false) }, async [actions.REQUEST_NETWORK_PERMISSIONS]() { - if (navigator.userAgent.includes('Firefox')) { - return + try { + await browser.permissions.request({ origins: ['*://*/*'] }) + } catch (e) { + console.warn(e) } - await browser.permissions.request({ origins: ['*://*/*'] }) } }