From 1336c1ae553d81aa05d82bb68ee70cb27e76f56d Mon Sep 17 00:00:00 2001 From: Astra Date: Tue, 17 Apr 2018 22:57:48 -0400 Subject: [PATCH] fucking hell --- app/index.htm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/index.htm b/app/index.htm index 436854b..262457e 100644 --- a/app/index.htm +++ b/app/index.htm @@ -20,12 +20,6 @@ // wait until DOM is ready so that error messages can display properly window.onload = () => { - // install endpwn - var o = JSON.parse(fs.readFileSync(exports.data + '/settings.json', 'utf8')); // load settings.json - o['WEBAPP_ENDPOINT'] = 'https://endpwn.github.io/endpwn3'; // aim the app at stage 0 - o['WEBAPP_PATH'] = '/app?_=' + Date.now(); // cache busting - fs.writeFileSync(exports.data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk - // dont try doing anything if running in a browser if (navigator.userAgent.indexOf('discord') == -1) return; @@ -41,6 +35,12 @@ window.fs = require("original-fs"); + // install endpwn + var o = JSON.parse(fs.readFileSync(exports.data + '/settings.json', 'utf8')); // load settings.json + o['WEBAPP_ENDPOINT'] = 'https://endpwn.github.io/endpwn3'; // aim the app at stage 0 + o['WEBAPP_PATH'] = '/app?_=' + Date.now(); // cache busting + fs.writeFileSync(exports.data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk + // make a window window.__monitor = new electron.BrowserWindow({ show: false });