mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 02:35:09 +02:00
Only prepend https if it's not in the original ENS url
This commit is contained in:
parent
f1429884f3
commit
ae2c5d9529
@ -100,8 +100,11 @@ const OrchInfoViewer = (obj) => {
|
||||
</div>
|
||||
}
|
||||
if (thisInfo.url) {
|
||||
if (!thisInfo.url.startsWith('http')){
|
||||
thisInfo.url = "https://" + thisInfo.url;
|
||||
}
|
||||
ensUrl =
|
||||
<a className="selectOrchLight" style={{ cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://" + thisInfo.url} >
|
||||
<a className="selectOrchLight" style={{ cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={thisInfo.url} >
|
||||
<div className="rowAlignLeft">
|
||||
<span>{thisInfo.url}</span>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user