generated from nathanwoodburn/firewallet-plugin-template
fix: Add _blank target for links
This commit is contained in:
@@ -87,11 +87,11 @@ def domain_info(params, authentication):
|
|||||||
|
|
||||||
if domainType == "marketplace":
|
if domainType == "marketplace":
|
||||||
price = data["data"].get("price", "No price available")
|
price = data["data"].get("price", "No price available")
|
||||||
returnInfo = f"<h4>Score: {score}<br>Price: {price}</h4><a href='https://shakestation.io/domain/{domain}'>View Listing</a>"
|
returnInfo = f"<h4>Score: {score}<br>Price: {price}</h4><a href='https://shakestation.io/domain/{domain}' target='_blank'>View Listing</a>"
|
||||||
else:
|
else:
|
||||||
stakedData = checkStaked(domain)
|
stakedData = checkStaked(domain)
|
||||||
if stakedData:
|
if stakedData:
|
||||||
returnInfo += f"<h4>Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)</h4><a href='https://shakestation.io/domains/{domain}'>View Listing</a>"
|
returnInfo += f"<h4>Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)</h4><a href='https://shakestation.io/domains/{domain}' target='_blank'>View Listing</a>"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user