From d8b5b897ded8989ab12cf4dcc0973b5312d1c66b Mon Sep 17 00:00:00 2001 From: neverblde Date: Mon, 29 Apr 2024 23:24:25 -0700 Subject: [PATCH] Clean up --- src/battle-scene.ts | 2 -- src/main.ts | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 1201ed12d43..6b54505b6a1 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -889,8 +889,6 @@ export default class BattleScene extends SceneBase { let battleConfig: FixedBattleConfig = null; - throw new Error('JLIN not implemented.'); - this.resetSeed(newWaveIndex); const playerField = this.getPlayerField(); diff --git a/src/main.ts b/src/main.ts index 973f57fda37..4b181f58174 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,6 +19,7 @@ window.onerror = function (message, source, lineno, colno, error) { return true; }; +// Catch global promise rejections and display them in an alert so users can report the issue. window.addEventListener('unhandledrejection', (event) => { let errorString = `Received unhandled promise rejection. Open browser console and click OK to see details.\nReason: ${event.reason}`; alert(errorString);