Skip to content

Commit

Permalink
refactor: change pUserName element from 'div' to 'a' for hyperlink fu…
Browse files Browse the repository at this point in the history
…nctionality
  • Loading branch information
akhileshthite committed May 23, 2024
1 parent bead186 commit e15c7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actor-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ActorProfile extends HTMLElement {
}

if (actorInfo.preferredUsername) {
const pUserName = document.createElement('div')
const pUserName = document.createElement('a')
pUserName.classList.add('profile-username')
pUserName.href = db.getObjectPage(actorInfo)
pUserName.textContent = `@${actorInfo.preferredUsername}`
Expand Down

0 comments on commit e15c7f8

Please sign in to comment.