Temporarily disable error handling
This commit is contained in:
parent
0185dd639e
commit
3a7a48fe83
|
@ -14,7 +14,7 @@ import { LoadingScene } from './loading-scene';
|
|||
window.onerror = function (message, source, lineno, colno, error) {
|
||||
console.error(error);
|
||||
let errorString = `Received unhandled error. Open browser console and click OK to see details.\nError: ${message}\nSource: ${source}\nLine: ${lineno}\nColumn: ${colno}\nStack: ${error.stack}`;
|
||||
alert(errorString);
|
||||
//alert(errorString);
|
||||
// Avoids logging the error a second time.
|
||||
return true;
|
||||
};
|
||||
|
@ -22,8 +22,9 @@ window.onerror = function (message, source, lineno, colno, error) {
|
|||
// 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);
|
||||
});
|
||||
console.error(event.reason);
|
||||
//alert(errorString);
|
||||
});
|
||||
|
||||
const config: Phaser.Types.Core.GameConfig = {
|
||||
type: Phaser.WEBGL,
|
||||
|
|
Loading…
Reference in New Issue