From 25e07b951b4f4a5f3cd0ee0c7f6a8970bd072806 Mon Sep 17 00:00:00 2001 From: Rustem Mussabekov Date: Tue, 21 May 2024 17:39:12 +0300 Subject: [PATCH] Redirect users that try to upload ENEX files to import page --- src/co/bookmarks/add/fallback/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/co/bookmarks/add/fallback/file.js b/src/co/bookmarks/add/fallback/file.js index 71885350..5e4365fb 100644 --- a/src/co/bookmarks/add/fallback/file.js +++ b/src/co/bookmarks/add/fallback/file.js @@ -13,7 +13,7 @@ export default function BookmarksAddFallbackFile({ spaceId, onEdit }) { const dispatch = useDispatch() const onFile = useCallback(async file=>{ - if (/\.(html|csv|json)$/i.test(file.name)){ + if (/\.(html|csv|json|enex)$/i.test(file.name)){ const openImport = await Confirm( 'Hmmm... wait a minute', {