From 3d72bbe838d71d121ee0d4c21aef2d45e73fe3a4 Mon Sep 17 00:00:00 2001 From: Gerard Chanekon Date: Thu, 23 Feb 2023 20:37:19 +1100 Subject: [PATCH] Display comment on credential's title if present --- popup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/popup.js b/popup.js index 812daa9..169c47c 100644 --- a/popup.js +++ b/popup.js @@ -184,6 +184,9 @@ function addCredentialsToList(credentials, credentialName, list) { const titleContent = document.createElement('span'); titleContent.classList.add('list__item-text-title', 'link'); titleContent.textContent = credentials.title || credentialName; + if (credentials.comment && credentials.comment.length > 0) { + titleContent.title = credentials.comment; + } primaryContent.appendChild(titleContent); const detailContent = document.createElement('span');