Merger bug fix, and added lred redirection

This commit is contained in:
YourFriendlyNeighborhoodDealer 2019-03-17 12:18:07 +01:00
parent ef7066474c
commit 5902585914
2 changed files with 7 additions and 1 deletions

View file

@ -378,7 +378,7 @@ function ReadData(data) {
try { try {
currQuestion.I = JSON.parse(currData); currQuestion.I = JSON.parse(currData);
} catch (e) { } catch (e) {
currQuestion.I = [currData]; currQuestion.I = currData.split(',');
} }
} }
ExpectedIdentifier = ['?', '+']; ExpectedIdentifier = ['?', '+'];

View file

@ -170,6 +170,12 @@ app.post('/isAdding', function(req, res) {
utils.WriteBackup(); utils.WriteBackup();
}); });
app.get('/lred', function(req, res) {
res.redirect("/legacy");
res.end();
Log(req);
});
app.get('/menuClick', function(req, res) { app.get('/menuClick', function(req, res) {
res.redirect("/"); res.redirect("/");
res.end(); res.end();