move window.reload() into stage2.js

This commit is contained in:
Astra 2018-04-24 23:33:10 -04:00
parent 4e7807025e
commit efb1788a70
2 changed files with 4 additions and 4 deletions

View File

@ -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();
},

View File

@ -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);