Prevent some more errors
This commit is contained in:
parent
fff575f762
commit
78c04523c0
@ -86,7 +86,11 @@ class PlayerUi extends UI {
|
||||
|
||||
//#region lifecycle
|
||||
replace(playerElement) {
|
||||
super.replace(this.getUiConfig(playerElement));
|
||||
try {
|
||||
super.replace(this.getUiConfig(playerElement));
|
||||
} catch (e) {
|
||||
this.logger.log('error', 'Couldn\'t replace player element for ui. Error:', e);
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user