added window.onerror to show messages for serious errors
This commit is contained in:
parent
03eae76ceb
commit
acb2825606
1 changed files with 6 additions and 0 deletions
|
@ -4003,6 +4003,12 @@ webGPU().then()
|
||||||
let screenWidth = screen.width;
|
let screenWidth = screen.width;
|
||||||
let screenHeight = screen.height;
|
let screenHeight = screen.height;
|
||||||
|
|
||||||
|
window.onerror = function(error) {
|
||||||
|
console.log(error)
|
||||||
|
bootbox.alert("Error occured: " + error)
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// Key bind to unjam MusicKit in case it fails: CTRL+F10
|
// Key bind to unjam MusicKit in case it fails: CTRL+F10
|
||||||
document.addEventListener('keydown', function (event) {
|
document.addEventListener('keydown', function (event) {
|
||||||
if (event.ctrlKey && event.keyCode == 121) {
|
if (event.ctrlKey && event.keyCode == 121) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue