TranslationParent: Don't throw on removeHandler() if none added
This commit is contained in:
parent
3e6cfaf9ac
commit
595eeeff6d
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ const TranslationManager = new class {
|
|||
|
||||
removeHandler(id, name, handler) {
|
||||
this._registeredRemoteTranslates.get(id).handlers[name]
|
||||
= this._registeredRemoteTranslates.get(id).handlers[name].filter(h => h !== handler);
|
||||
= this._registeredRemoteTranslates.get(id).handlers[name]?.filter(h => h !== handler);
|
||||
}
|
||||
|
||||
clearHandlers(id, name) {
|
||||
|
|
Loading…
Add table
Reference in a new issue