mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 01:30:13 +00:00
fix: rendering crashes on dash when no system name is set
This commit is contained in:
parent
80a130d9a8
commit
134dbb010a
1 changed files with 3 additions and 1 deletions
|
|
@ -10,7 +10,9 @@
|
||||||
let nameElement: any;
|
let nameElement: any;
|
||||||
let settings = JSON.parse(localStorage.getItem("pk-settings"));
|
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 (settings && settings.appearance.twemoji) {
|
||||||
if (nameElement) twemoji.parse(nameElement);
|
if (nameElement) twemoji.parse(nameElement);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue