Skip to content

Commit

Permalink
Fix bug with link
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Dec 22, 2024
1 parent c464e31 commit 3aee1c3
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Angor/Client/Pages/View.razor
Original file line number Diff line number Diff line change
Expand Up @@ -752,18 +752,9 @@ else

private async void OpenInBrowseAsync()
{
var pubkey = project.ProjectInfo.NostrPubKey;
var url = $"https://hub.angor.io/project/{project.ProjectInfo.ProjectIdentifier}";

if (!string.IsNullOrEmpty(pubkey))
{
var url = $"https://hub.angor.io/project/{pubkey}";

await Js.InvokeVoidAsync("window.open", url, "_blank");
}
else
{
notificationComponent.ShowNotificationMessage("Public key is not available.", 3);
}
await Js.InvokeVoidAsync("window.open", url, "_blank");
}

public MarkupString ConvertToMarkupString(string input)
Expand Down

0 comments on commit 3aee1c3

Please sign in to comment.