mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 00:43:04 +00:00
feat: enable stricter type checking options
feat: make the app more fault tolerant
This commit is contained in:
@@ -69,7 +69,7 @@ for (const icon of icons) {
|
||||
.flatMap((it) => [...it])
|
||||
.map((it) => it.codePointAt(0).toString(16));
|
||||
|
||||
const codePoint = config.codePoints[icon];
|
||||
const codePoint = config.codePoints[icon ?? ""];
|
||||
if (codePoint) {
|
||||
glyphs.push(codePoint);
|
||||
} else if (codePoints.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user