feat/import #2

Merged
tristonarmstrong merged 2 commits from feat/import into main 2024-10-07 04:55:20 +00:00
Showing only changes of commit 2ed58cbee6 - Show all commits

View File

@ -10,6 +10,8 @@ export function ImportButton() {
function _handleImport() { function _handleImport() {
const input = document.createElement('input') const input = document.createElement('input')
input.type = 'file' input.type = 'file'
input.accept = ".json"
input.multiple = false
input.onchange = (e: any) => { input.onchange = (e: any) => {
const file = e.target.files[0] const file = e.target.files[0]
const reader = new FileReader() const reader = new FileReader()