mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
move window.reload() into stage2.js
This commit is contained in:
parent
4e7807025e
commit
efb1788a70
2 changed files with 4 additions and 4 deletions
|
@ -73,8 +73,6 @@
|
|||
// post-init payload
|
||||
document.addEventListener('ep-ready', () => {
|
||||
|
||||
window.reload = () => { app.relaunch(); app.exit(); };
|
||||
|
||||
// disable analytics
|
||||
$api.util.findFuncExports("AnalyticEventConfigs").default.track = () => {};
|
||||
|
||||
|
@ -134,8 +132,7 @@
|
|||
onConfirm: () => {
|
||||
|
||||
// refresh the page if we're running in a browser, reboot the app if we're running outside of lite mode
|
||||
if ($api.lite) location.reload();
|
||||
else reload();
|
||||
reload();
|
||||
|
||||
},
|
||||
|
||||
|
|
|
@ -35,6 +35,9 @@
|
|||
// load EPAPI
|
||||
var epapi = __krequire('epapi.js');
|
||||
|
||||
// add window.reload()
|
||||
window.reload = () => { app.relaunch(); app.exit(); };
|
||||
|
||||
// call the entrypoint
|
||||
epapi.go('bootsyhax-dr1ft', 0, 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue