mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 23:09:58 +02:00
Refactor ZenWorkspaces to fix icon mapping issue
This commit is contained in:
parent
9ae3de71e7
commit
7af14f1484
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ var ZenWorkspaces = {
|
|||
}
|
||||
},
|
||||
|
||||
_kIcons: JSON.parse(Services.prefs.getStringPref("zen.workspaces.icons")).map((icon) => icon),
|
||||
_kIcons: JSON.parse(Services.prefs.getStringPref("zen.workspaces.icons")).map((icon) => Array.from(icon)[0]),
|
||||
|
||||
_initializeWorkspaceCreationIcons() {
|
||||
let container = document.getElementById('PanelUI-zen-workspaces-create-icons-container');
|
||||
|
@ -248,7 +248,7 @@ var ZenWorkspaces = {
|
|||
if (this.workspaceHasIcon(workspace)) {
|
||||
return workspace.icon;
|
||||
}
|
||||
return workspace.name[0].toUpperCase();
|
||||
return Array.from(workspace.name)[0].toUpperCase();
|
||||
},
|
||||
|
||||
get shouldShowContainers() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue