Files
desktop/src/toolkit/content/aboutProfiles-js.patch
2024-04-02 16:05:04 +02:00

32 lines
1.2 KiB
Diff

diff --git a/toolkit/content/aboutProfiles.js b/toolkit/content/aboutProfiles.js
index 15c0419a11fee377f17dd766938943024723aab0..cce2f157642e4b1a0bb7aaddb0105d0f4e67897b 100644
--- a/toolkit/content/aboutProfiles.js
+++ b/toolkit/content/aboutProfiles.js
@@ -117,7 +117,7 @@ function display(profileData) {
let tbody = document.createElement("tbody");
table.appendChild(tbody);
- function createItem(title, value, dir = false) {
+ function createItem(title, value, dir = false, zenAsText = false) {
let tr = document.createElement("tr");
tbody.appendChild(tr);
@@ -143,6 +143,8 @@ function display(profileData) {
value.reveal();
});
}
+ } else if (zenAsText) {
+ td.appendChild(document.createTextNode(value));
} else {
document.l10n.setAttributes(td, value);
}
@@ -155,6 +157,8 @@ function display(profileData) {
createItem("profiles-rootdir", profileData.profile.rootDir, true);
+ createItem("profiles-avatar", profileData.profile.zenAvatarPath, false, true);
+
if (profileData.profile.localDir.path != profileData.profile.rootDir.path) {
createItem("profiles-localdir", profileData.profile.localDir, true);
}