fix: rendering crashes on dash when no system name is set

This commit is contained in:
Spectralitree 2021-12-20 07:58:17 +01:00
parent 80a130d9a8
commit 134dbb010a

View File

@ -10,7 +10,9 @@
let nameElement: any;
let settings = JSON.parse(localStorage.getItem("pk-settings"));
$: htmlName = toHTML(item.name);
$: if (item.name) htmlName = toHTML(item.name);
else htmlName = "";
$: if (settings && settings.appearance.twemoji) {
if (nameElement) twemoji.parse(nameElement);
}