diff --git a/shared.js b/shared.js index 45d8bb0..f4d3a8f 100644 --- a/shared.js +++ b/shared.js @@ -73,41 +73,6 @@ // post-init payload document.addEventListener('ep-ready', () => { - // hijack the crash handler - // TODO: make this less ugly - /*$api.util.findFuncExports('CRASH', 'prototype').prototype.render = function () { - - console.error('*** DISCORD CRASH!!! ***\nLOCKING DISPATCH AND HIJACKING PAGE'); - - // disable dispatch(), essentially freezing react - $api.internal.dispatcher.default.dispatch = () => { }; - - // clear css - $("link[rel='stylesheet']").remove(); - $$("style").forEach(x => x.remove()); - - // add a simple style to the body - $('body').style.color = '#fff'; - $('body').style.backgroundColor = '#000082'; - $('body').style.fontFamily = 'monospace'; - - // write our message to app-mount - $('#app-mount').innerHTML = `