Get the dApp URL for an assembly, ensuring it has a protocol prefix.
The assembly object
The full dApp URL with https:// prefix if needed
const { assembly } = useSmartObject();const dappUrl = getDappUrl(assembly);if (dappUrl) { window.open(dappUrl, '_blank');} Copy
const { assembly } = useSmartObject();const dappUrl = getDappUrl(assembly);if (dappUrl) { window.open(dappUrl, '_blank');}
Get the dApp URL for an assembly, ensuring it has a protocol prefix.