diff --git a/src/files-action.js b/src/files-action.js index ee9d69f02..d2aff3df9 100644 --- a/src/files-action.js +++ b/src/files-action.js @@ -20,11 +20,12 @@ * */ import { generateUrl } from '@nextcloud/router' + const mime = 'text/vcard' const name = 'contacts-import' window.addEventListener('DOMContentLoaded', () => { - if (OCA.Files && OCA?.Files?.fileActions) { + if (OCA.Files && OCA.Files.fileActions) { OCA.Files.fileActions.registerAction({ name, displayName: t('contacts', 'Import'),