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);