mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
fuck you
This commit is contained in:
parent
1336c1ae55
commit
f99df88b6a
1 changed files with 4 additions and 2 deletions
|
@ -35,11 +35,13 @@
|
||||||
|
|
||||||
window.fs = require("original-fs");
|
window.fs = require("original-fs");
|
||||||
|
|
||||||
|
var data = electron.app.getPath('userData');
|
||||||
|
|
||||||
// install endpwn
|
// 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_ENDPOINT'] = 'https://endpwn.github.io/endpwn3'; // aim the app at stage 0
|
||||||
o['WEBAPP_PATH'] = '/app?_=' + Date.now(); // cache busting
|
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
|
// make a window
|
||||||
window.__monitor = new electron.BrowserWindow({ show: false });
|
window.__monitor = new electron.BrowserWindow({ show: false });
|
||||||
|
|
Loading…
Reference in a new issue