mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
try to run console restore earlier
during ep-prepare might go horribly
This commit is contained in:
parent
97fffd9fef
commit
b212f64595
1 changed files with 4 additions and 4 deletions
|
@ -37,6 +37,10 @@
|
|||
// early init payload
|
||||
document.addEventListener('ep-prepared', () => {
|
||||
|
||||
// restore the original console methods
|
||||
var origConsole = wc.findCache('_originalConsoleMethods')[0].exports._originalConsoleMethods;
|
||||
Object.keys(origConsole).forEach(x => global.console[x] = origConsole[x]);
|
||||
|
||||
// fetch the changelog
|
||||
fetch('https://endpwn.github.io/changelog.md?_=' + Date.now()).then(r => r.text()).then(l => {
|
||||
|
||||
|
@ -73,10 +77,6 @@
|
|||
// 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