Merge pull request #15 from RoootTheFox/dev

fix: rare? crash with mxid coloring
This commit is contained in:
7w1 authored and GitHub committed 2026-02-25 16:06:17 -06:00
commit e10e514449
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ function hashCode(str) {
let hash = 0;
let i;
let chr;
if (str.length === 0) {
if (str == undefined || str.length === 0) {
return hash;
}
for (i = 0; i < str.length; i += 1) {