diff --git a/src/ui/views/ImportExport.vue b/src/ui/views/ImportExport.vue index 15d73d6449..e744e9ed7f 100644 --- a/src/ui/views/ImportExport.vue +++ b/src/ui/views/ImportExport.vue @@ -106,8 +106,12 @@ export default { alert(e.message) } }, - onTriggerFilePicker() { + async onTriggerFilePicker() { this.$refs.filePicker.click() + if (this.isBrowser) { + const {default: browser} = await import('../../lib/browser-api') + await browser.permissions.request({ origins: ['*://*/*'] }) + } }, async onFileSelect() { const file = this.$refs.filePicker.files[0]