From 528c166a0bb0f88e29657fa1cfcbc469dcc8b75f Mon Sep 17 00:00:00 2001 From: Astra Date: Tue, 8 May 2018 22:02:30 -0400 Subject: [PATCH] move reload() definition to preload() --- plugin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin.js b/plugin.js index a3cd641..7722a00 100644 --- a/plugin.js +++ b/plugin.js @@ -42,6 +42,7 @@ exports = { fetchGoodies(); setInterval(fetchGoodies, 1800000); + window.reload = () => { app.relaunch(); app.exit(); }; window.endpwn = { __eval: e => eval(e), @@ -127,8 +128,6 @@ exports = { start: function () { - window.reload = () => { app.relaunch(); app.exit(); }; - // disable analytics __epprint('disabling analytics...'); $api.util.findFuncExports("AnalyticEventConfigs").default.track = () => { };