use substitute

This commit is contained in:
casglistro
2024-04-18 16:46:08 +08:00
parent 27d35769c3
commit c26bbf9348
+2 -2
View File
@@ -158,7 +158,7 @@ const Taskbar = (monitor) => Widget.Box({
path = searchIcons(appClass.toLowerCase(), icon_files)
cachePath[appClassLower] = path
}
if (path === '') { path = appClass }
if (path === '') { path = substitute(appClass) }
const newButton = AppButton({
icon: path,
tooltipText: `${client.title} (${appClass})`,
@@ -187,7 +187,7 @@ const Taskbar = (monitor) => Widget.Box({
path = searchIcons(appClassLower, icon_files)
cachePath[appClassLower] = path
}
if (path === '') { path = substitute(appClassLower) }
if (path === '') { path = substitute(appClass) }
const newButton = AppButton({
icon: path,
tooltipText: `${newClient.title} (${appClass})`,