Commit ff10a71a authored by Sylvain Dailler's avatar Sylvain Dailler
Browse files

Avoid printing null notification in log.

parent b602ed08
......@@ -570,8 +570,9 @@ let getNotification2 () =
if xhr ##. readyState == XmlHttpRequest.DONE then
if xhr ##. status == 200 then
let r = readBody xhr in
PE.printAnswer ("r = |" ^ r ^ "|"); (* TODO *)
let nl = Json_util.parse_list_notification r in
if nl != [] then
PE.printAnswer ("r = |" ^ r ^ "|");
interpNotifications nl
else
()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment