mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
fucking hell
This commit is contained in:
parent
fc4ff91a39
commit
1336c1ae55
1 changed files with 6 additions and 6 deletions
|
@ -20,12 +20,6 @@
|
||||||
// wait until DOM is ready so that error messages can display properly
|
// wait until DOM is ready so that error messages can display properly
|
||||||
window.onload = () => {
|
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
|
// dont try doing anything if running in a browser
|
||||||
if (navigator.userAgent.indexOf('discord') == -1) return;
|
if (navigator.userAgent.indexOf('discord') == -1) return;
|
||||||
|
|
||||||
|
@ -41,6 +35,12 @@
|
||||||
|
|
||||||
window.fs = require("original-fs");
|
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
|
// make a window
|
||||||
window.__monitor = new electron.BrowserWindow({ show: false });
|
window.__monitor = new electron.BrowserWindow({ show: false });
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue