diff --git a/shared.js b/shared.js index 6b65033..7d6e2dc 100644 --- a/shared.js +++ b/shared.js @@ -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(); }, diff --git a/stage2.js b/stage2.js index 25da23c..2f84ad6 100644 --- a/stage2.js +++ b/stage2.js @@ -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);