fix firefox private

This commit is contained in:
_Bastler
2022-01-12 10:56:47 +01:00
parent fa4cd34c49
commit f9f2370afb
3 changed files with 13 additions and 3 deletions
@@ -78,6 +78,9 @@ export class ErrorScene extends Phaser.Scene {
*/
public static showError(error: unknown, scene: ScenePlugin): void {
console.error(error);
if (error instanceof Error) {
console.error("Stacktrace: ", error.stack);
}
console.trace();
if (typeof error === "string" || error instanceof String) {