fix the WEBAPP_ENDPOINT expansion bug

This commit is contained in:
Astra 2018-05-08 01:28:45 -04:00
parent 6959ab9423
commit 16ba644be8
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@
// install endpwn
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
fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk