Skip to content

Commit

Permalink
fix: Ignore errors in REQUEST_NET_PERMS
Browse files Browse the repository at this point in the history
fixes #1509

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed May 3, 2024
1 parent e774208 commit 595a0ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ui/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ['*://*/*'] })
}
}

0 comments on commit 595a0ec

Please sign in to comment.