Fixed weird behaviour caused by development polyfill.
This commit is contained in:
parent
c267b1d73b
commit
3247a46d19
2 changed files with 3 additions and 1 deletions
|
@ -191,7 +191,6 @@ Umi.UI.Messages = (function() {
|
|||
bType = msg.type.substring(7);
|
||||
bIsError = msg.detail.error;
|
||||
bArgs = msg.detail.args;
|
||||
msgAuthor = Umi.Users.FindExact(bArgs[0]) ?? Umi.Users.FindExact('~' + bArgs[0]);
|
||||
}
|
||||
|
||||
soundName = bIsError ? 'error' : 'server';
|
||||
|
|
|
@ -182,6 +182,9 @@ Umi.Users = (function() {
|
|||
return found;
|
||||
},
|
||||
FindExact: function(userName) {
|
||||
if(typeof userName !== 'string')
|
||||
return null;
|
||||
|
||||
userName = userName.toLowerCase();
|
||||
|
||||
for(const user of users.values())
|
||||
|
|
Loading…
Reference in a new issue