This commit is contained in:
He4eT 2023-05-21 16:46:30 +03:00
commit 558181d069
21 changed files with 174 additions and 170 deletions

View file

@ -1,6 +1,6 @@
import { h } from 'preact'
export default function ({ theme, setLocation, buildLink }) {
export default function LocalFileSelector ({ theme, setLocation, buildLink }) {
const fileInputHandler = ({ target }) => {
const file = target.files[0]
const url = `${URL.createObjectURL(file)}#${file.name}`