From 2ed58cbee674a02ffcf05becf91320b9050e97f3 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Mon, 7 Oct 2024 00:54:50 -0400 Subject: [PATCH] limit types of files to import --- src/components/cardSelector/ImportButton.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/cardSelector/ImportButton.tsx b/src/components/cardSelector/ImportButton.tsx index 8df6739..90f5952 100644 --- a/src/components/cardSelector/ImportButton.tsx +++ b/src/components/cardSelector/ImportButton.tsx @@ -10,6 +10,8 @@ export function ImportButton() { function _handleImport() { const input = document.createElement('input') input.type = 'file' + input.accept = ".json" + input.multiple = false input.onchange = (e: any) => { const file = e.target.files[0] const reader = new FileReader()