This commit is contained in:
neverblde 2024-04-29 23:24:25 -07:00
parent b67b9efc31
commit d8b5b897de
2 changed files with 1 additions and 2 deletions

View File

@ -889,8 +889,6 @@ export default class BattleScene extends SceneBase {
let battleConfig: FixedBattleConfig = null; let battleConfig: FixedBattleConfig = null;
throw new Error('JLIN not implemented.');
this.resetSeed(newWaveIndex); this.resetSeed(newWaveIndex);
const playerField = this.getPlayerField(); const playerField = this.getPlayerField();

View File

@ -19,6 +19,7 @@ window.onerror = function (message, source, lineno, colno, error) {
return true; return true;
}; };
// Catch global promise rejections and display them in an alert so users can report the issue.
window.addEventListener('unhandledrejection', (event) => { window.addEventListener('unhandledrejection', (event) => {
let errorString = `Received unhandled promise rejection. Open browser console and click OK to see details.\nReason: ${event.reason}`; let errorString = `Received unhandled promise rejection. Open browser console and click OK to see details.\nReason: ${event.reason}`;
alert(errorString); alert(errorString);