[FIX #1209] resources/js: wrap undefined responses from jail in a String

This commit is contained in:
Vitaliy Vlasov 2017-12-02 21:27:19 +02:00 committed by Roman Volosovskyi
parent e83adf1b46
commit 3feb43d16d
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ function jsHandler(params, context) {
};
messages = [];
try {
result["text-message"] = JSON.stringify(eval(params.code));
result["text-message"] = String(JSON.stringify(eval(params.code)));
localStorage.setItem("previousMessage", params.code);
} catch (e) {
result.err = e;