Enhance tab icon handling and improve event detection in ZenViewSplitter; update version numbers in surfer.json

This commit is contained in:
mr. M
2025-03-05 20:02:10 +01:00
parent 996f042961
commit 162e6abcc1
3 changed files with 8 additions and 5 deletions

View File

@@ -83,7 +83,7 @@
onTabIconChanged(tab, url = null) {
const iconUrl = url ?? tab.iconImage.src;
if (tab.hasAttribute('zen-essential')) {
if (tab.hasAttribute('zen-essential') && this._pinsCache) {
const pin = this._pinsCache.find((pin) => pin.uuid === tab.getAttribute('zen-pin-id'));
if (pin) {
tab.querySelector('.tab-background').style.setProperty('--zen-tab-icon', `url(${pin.iconUrl})`);