mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +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>
|
</div>
|
||||||
}
|
}
|
||||||
if (thisInfo.url) {
|
if (thisInfo.url) {
|
||||||
|
if (!thisInfo.url.startsWith('http')){
|
||||||
|
thisInfo.url = "https://" + thisInfo.url;
|
||||||
|
}
|
||||||
ensUrl =
|
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">
|
<div className="rowAlignLeft">
|
||||||
<span>{thisInfo.url}</span>
|
<span>{thisInfo.url}</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user