Merge pull request #26 from NebulousLabs/fix-skylink-with-sia-prefix
fix new window url when pasting skylink with sia:// prefix
This commit is contained in:
commit
2ee1671aec
|
@ -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