mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Linting
This commit is contained in:
parent
3288234f36
commit
7a96d99055
21 changed files with 174 additions and 170 deletions
|
|
@ -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}`
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { h } from 'preact'
|
||||
|
||||
export default function ({ theme, setLocation, buildLink }) {
|
||||
export default function TargetURLSelector ({ theme, setLocation, buildLink }) {
|
||||
const urlRE = /^(http|https):\/\/[^ "]+$/
|
||||
|
||||
const onKeyPress = ({ keyCode, target }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue