Do not ignore JSON.parse errors

pull/4415/head
Marcelo Schmidt 9 years ago
parent 7543c6f8b2
commit 95f4e21d0d
No known key found for this signature in database
GPG Key ID: CA48C21A7B66097E
  1. 2
      packages/rocketchat-videobridge/client/public/external_api.js

@ -295,7 +295,7 @@ var JitsiMeetExternalAPI = (function()
var message;
try {
message = JSON.parse(event.data);
} catch (e) {}
} catch (e) { return; }
if(!message.type) {
console.error("Message without type is received.");

Loading…
Cancel
Save