fix new window url when pasting skylink with sia:// prefix

This commit is contained in:
Karol Wypchlo 2020-02-18 10:35:58 +01:00
parent 4f2e386abb
commit 0d489fd259
1 changed files with 1 additions and 1 deletions

View File

@ -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')
} }
} }