mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
restore the console methods
the ones discord fucks up, making stack traces useless
This commit is contained in:
parent
a9f2b9af53
commit
97fffd9fef
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,10 @@
|
|||
// post-init payload
|
||||
document.addEventListener('ep-ready', () => {
|
||||
|
||||
// restore the original console methods
|
||||
var origConsole = wc.findCache('_originalConsoleMethods')[0].exports._originalConsoleMethods;
|
||||
Object.keys(origConsole).forEach(x => global.console[x] = origConsole[x]);
|
||||
|
||||
// disable analytics
|
||||
$api.util.findFuncExports("AnalyticEventConfigs").default.track = () => { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue