fix: #9387, don't try to load undefined images

This commit is contained in:
Barış Soner Uşaklı
2021-03-14 15:57:08 -04:00
parent 5c59354c58
commit 03e306349c

View File

@@ -189,7 +189,7 @@ define('taskbar', ['benchpress', 'translator'], function (Benchpress, translator
element.find('i').attr('class', 'fa fa-' + value);
break;
case 'image':
element.find('a').css('background-image', 'url("' + value + '")');
element.find('a').css('background-image', value ? 'url("' + value + '")' : '');
break;
case 'background-color':
element.find('a').css('background-color', value);