During Game.runDestroy it will now check for this.domContainer.parentNode before trying to remove it, preventing errors if the DOM Container has already been removed. Fix #6559

This commit is contained in:
Richard Davey 2023-11-08 16:49:39 +00:00
parent 94b13ad6dd
commit 3b190360f1

View file

@ -769,7 +769,7 @@ var Game = new Class({
} }
} }
if (this.domContainer) if (this.domContainer && this.domContainer.parentNode)
{ {
this.domContainer.parentNode.removeChild(this.domContainer); this.domContainer.parentNode.removeChild(this.domContainer);
} }