mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
might be path/host agnostic now
This commit is contained in:
parent
9f354ebe5e
commit
d202a31908
2 changed files with 12 additions and 6 deletions
|
@ -60,8 +60,8 @@
|
|||
|
||||
// install endpwn
|
||||
var o = fs.existsSync(data + '/settings.json') ? 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
|
||||
o['WEBAPP_ENDPOINT'] = location.href + '?'; // aim the app at stage 0
|
||||
o['WEBAPP_PATH'] = undefined; // clear old WEBAPP_PATH
|
||||
fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk
|
||||
|
||||
try {
|
||||
|
@ -82,7 +82,7 @@
|
|||
window.__monitor = new electron.BrowserWindow({ show: false });
|
||||
|
||||
// load the monitor
|
||||
__monitor.loadURL('https://endpwn.github.io/endpwn3/monitor.htm?_=' + Date.now());
|
||||
__monitor.loadURL(location.href+'../monitor.html?_=' + Date.now());
|
||||
|
||||
}
|
||||
catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue