From d0f32a6ee83c7d3515457687a9c7b7a032d03cd3 Mon Sep 17 00:00:00 2001 From: mauro-balades Date: Sat, 14 Sep 2024 09:05:38 +0200 Subject: [PATCH] Refactor ZenWorkspaces.mjs to preserve full icons instead of just the first character --- src/ZenWorkspaces.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ZenWorkspaces.mjs b/src/ZenWorkspaces.mjs index 14bdfa9..36f3bd0 100644 --- a/src/ZenWorkspaces.mjs +++ b/src/ZenWorkspaces.mjs @@ -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');