From f99df88b6a1bf4083ea9979d10316cbc94a96073 Mon Sep 17 00:00:00 2001 From: Astra Date: Tue, 17 Apr 2018 23:01:06 -0400 Subject: [PATCH] fuck you --- app/index.htm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/index.htm b/app/index.htm index 262457e..a7487ee 100644 --- a/app/index.htm +++ b/app/index.htm @@ -35,11 +35,13 @@ window.fs = require("original-fs"); + var data = electron.app.getPath('userData'); + // install endpwn - var o = JSON.parse(fs.readFileSync(exports.data + '/settings.json', 'utf8')); // load settings.json + var o = JSON.parse(fs.readFileSync(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 + fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk // make a window window.__monitor = new electron.BrowserWindow({ show: false });