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
|
// post-init payload
|
||||||
document.addEventListener('ep-ready', () => {
|
document.addEventListener('ep-ready', () => {
|
||||||
|
|
||||||
window.reload = () => { app.relaunch(); app.exit(); };
|
|
||||||
|
|
||||||
// disable analytics
|
// disable analytics
|
||||||
$api.util.findFuncExports("AnalyticEventConfigs").default.track = () => {};
|
$api.util.findFuncExports("AnalyticEventConfigs").default.track = () => {};
|
||||||
|
|
||||||
|
@ -134,8 +132,7 @@
|
||||||
onConfirm: () => {
|
onConfirm: () => {
|
||||||
|
|
||||||
// refresh the page if we're running in a browser, reboot the app if we're running outside of lite mode
|
// 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();
|
reload();
|
||||||
else reload();
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,9 @@
|
||||||
// load EPAPI
|
// load EPAPI
|
||||||
var epapi = __krequire('epapi.js');
|
var epapi = __krequire('epapi.js');
|
||||||
|
|
||||||
|
// add window.reload()
|
||||||
|
window.reload = () => { app.relaunch(); app.exit(); };
|
||||||
|
|
||||||
// call the entrypoint
|
// call the entrypoint
|
||||||
epapi.go('bootsyhax-dr1ft', 0, 1);
|
epapi.go('bootsyhax-dr1ft', 0, 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue