Merge pull request #4187 from zabojeb/feature/non-flag-icons

Make workspaces icons randomly select only non-flag emojis
This commit is contained in:
mr. m
2025-01-06 00:47:19 +01:00
committed by GitHub

View File

@@ -618,7 +618,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
let parentPanel = document.getElementById('PanelUI-zen-workspaces-multiview');
// randomly select an icon
let icon = this.emojis[Math.floor(Math.random() * this.emojis.length)][0];
let icon = this.emojis[Math.floor(Math.random() * (this.emojis.length - 257))][0];
this._workspaceCreateInput.textContent = '';
this._workspaceCreateInput.value = '';
this._workspaceCreateInput.setAttribute('data-initial-value', '');