[FIX #1209] resources/js: wrap undefined responses from jail in a String
This commit is contained in:
parent
e83adf1b46
commit
3feb43d16d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue