Skip to content

Commit

Permalink
Redirect users that try to upload ENEX files to import page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed May 21, 2024
1 parent fb984b2 commit 25e07b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/co/bookmarks/add/fallback/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand Down

0 comments on commit 25e07b9

Please sign in to comment.