Refactor ZenWorkspaces.mjs to preserve full icons instead of just the first character

This commit is contained in:
mauro-balades 2024-09-14 09:05:38 +02:00
parent cc4601f0e1
commit d0f32a6ee8

View file

@ -101,9 +101,7 @@ var ZenWorkspaces = {
}
},
// Convert all the icons to just the first character, just in case someone
// decides to use a string with more than one character
_kIcons: JSON.parse(Services.prefs.getStringPref("zen.workspaces.icons")).map((icon) => icon[0]),
_kIcons: JSON.parse(Services.prefs.getStringPref("zen.workspaces.icons")).map((icon) => icon),
_initializeWorkspaceCreationIcons() {
let container = document.getElementById('PanelUI-zen-workspaces-create-icons-container');