mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
TargetURLSelector: encode URL
This commit is contained in:
parent
ade6f5d2c3
commit
229500b861
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ export default function TargetURLSelector ({ theme, setLocation, buildLink }) {
|
|||
const onKeyPress = ({ keyCode, target }) => {
|
||||
if (keyCode !== 13) return
|
||||
|
||||
const url = target.value
|
||||
const url = encodeURI(target.value)
|
||||
|
||||
if (urlRE.test(url)) {
|
||||
setLocation(buildLink({ url, theme }))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue