Added make scripts, some new tests, install link now points to greasyfork

This commit is contained in:
MrFry 2020-03-22 14:46:20 +01:00
parent 0c5ab62a5c
commit 8ef64e1a54
10 changed files with 277 additions and 12 deletions

View file

@ -60,7 +60,12 @@ function ProcessIncomingRequest (recievedData, qdb, infos) {
try {
// recievedData: { version: "", id: "", subj: "" quiz: {} }
let d = JSON.parse(recievedData)
let d = recievedData
// FIXME: if is for backwards compatibility, remove this sometime in the future
if (typeof d !== 'object') {
d = JSON.parse(recievedData)
}
logger.DebugLog('recievedData JSON parsed', 'actions', 1)
let allQLength = d.quiz.length
let allQuestions = []