mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
fix the WEBAPP_ENDPOINT expansion bug
This commit is contained in:
parent
6959ab9423
commit
16ba644be8
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
// install endpwn
|
// install endpwn
|
||||||
var o = fs.existsSync(data + '/settings.json') ? JSON.parse(fs.readFileSync(data + '/settings.json', 'utf8')) : {}; // load settings.json
|
var o = fs.existsSync(data + '/settings.json') ? JSON.parse(fs.readFileSync(data + '/settings.json', 'utf8')) : {}; // load settings.json
|
||||||
o['WEBAPP_ENDPOINT'] = location.href + '?'; // aim the app at stage 0
|
o['WEBAPP_ENDPOINT'] = location.href.split('?')[0] + '?'; // aim the app at stage 0
|
||||||
o['WEBAPP_PATH'] = undefined; // clear old WEBAPP_PATH
|
o['WEBAPP_PATH'] = undefined; // clear old WEBAPP_PATH
|
||||||
fs.writeFileSync(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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue