fix(ui): fix screen state
This commit is contained in:
parent
c9f54738ae
commit
deb20f4e34
1 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ export default abstract class BaseScreen {
|
|||
|
||||
attach(parentElement: HTMLElement) {
|
||||
if (this.parentElement) {
|
||||
throw new Error("BaseScreen: Trying to attach an attached screen.");
|
||||
this.parentElement = undefined
|
||||
console.error("BaseScreen: Trying to attach an attached screen.");
|
||||
}
|
||||
|
||||
parentElement.appendChild(this.screen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue