Commit 632d4279 authored by mercury233's avatar mercury233

fix

parent 332d7b01
...@@ -582,7 +582,7 @@ if settings.modules.http ...@@ -582,7 +582,7 @@ if settings.modules.http
), ),
istart: if room.started then 'start' else 'wait' istart: if room.started then 'start' else 'wait'
) )
response.end("loadroom( { " + roomsjson + " } );"); response.end("loadroom( " + roomsjson + " );");
else if u.query == 'operation=getroomjson' else if u.query == 'operation=getroomjson'
response.writeHead(200); response.writeHead(200);
response.end JSON.stringify rooms: (for room in Room.all when room.established response.end JSON.stringify rooms: (for room in Room.all when room.established
......
...@@ -781,7 +781,7 @@ ...@@ -781,7 +781,7 @@
return results; return results;
})() })()
}); });
return response.end("loadroom( { " + roomsjson + " } );"); return response.end("loadroom( " + roomsjson + " );");
} else if (u.query === 'operation=getroomjson') { } else if (u.query === 'operation=getroomjson') {
response.writeHead(200); response.writeHead(200);
return response.end(JSON.stringify({ return response.end(JSON.stringify({
......
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