added window.onerror to show messages for serious errors

This commit is contained in:
booploops 2022-02-14 03:42:06 -08:00
parent 03eae76ceb
commit acb2825606

View file

@ -4003,6 +4003,12 @@ webGPU().then()
let screenWidth = screen.width;
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
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.keyCode == 121) {