parseIcon: use txt & txtS as text fallback

This commit is contained in:
Jannis R 2019-08-31 14:45:24 +02:00
parent 6c5409fbce
commit 8b2a5a82f2
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -3,7 +3,7 @@
const parseIcon = (profile, i) => { const parseIcon = (profile, i) => {
const res = { const res = {
type: i.res || null, type: i.res || null,
title: i.text || null title: i.text || i.txt || i.txtS || null
} }
if (i.fg) res.fgColor = i.fg if (i.fg) res.fgColor = i.fg
if (i.bg) res.bgColor = i.bg if (i.bg) res.bgColor = i.bg