From 16ba644be8ffb8c4bc689f643dcbc19af5fdf915 Mon Sep 17 00:00:00 2001 From: Astra Date: Tue, 8 May 2018 01:28:45 -0400 Subject: [PATCH] fix the WEBAPP_ENDPOINT expansion bug --- app/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.html b/app/index.html index 9bfa7cd..2b4703a 100644 --- a/app/index.html +++ b/app/index.html @@ -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