fix new window url when pasting skylink with sia:// prefix
This commit is contained in:
parent
4f2e386abb
commit
0d489fd259
|
@ -58,7 +58,7 @@ export default class HomeUpload extends Component {
|
||||||
const skylink = event.target.skylink.value.replace('sia://', '')
|
const skylink = event.target.skylink.value.replace('sia://', '')
|
||||||
|
|
||||||
if (skylink.match(/^[a-zA-Z0-9_-]{46}$/)) {
|
if (skylink.match(/^[a-zA-Z0-9_-]{46}$/)) {
|
||||||
window.open(`/${event.target.skylink.value}`, '_blank')
|
window.open(skylink, '_blank')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue