From 1caf0c89217037f6e890cdb211eb386c5a5bf42d Mon Sep 17 00:00:00 2001 From: greta Date: Tue, 7 Nov 2023 09:25:36 +0100 Subject: [PATCH] fixup! Add shared items and events for each contact Signed-off-by: greta --- src/files-action.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'),