Fix popup refreshing on send

This commit is contained in:
Matt Corallo 2014-04-04 05:50:26 -04:00
parent 732f9ac089
commit e492aae172
2 changed files with 2 additions and 1 deletions

View file

@ -918,6 +918,7 @@ function subscribeToPush(message_callback) {
var proto = decodeIncomingPushMessageProtobuf(plaintext);
// After this point, a) decoding errors are not the server's fault, and
// b) we should handle them gracefully and tell the user they received an invalid message
console.log("Successfully decoded message with id: " + message.id);
socket.send(JSON.stringify({type: 1, id: message.id}));
} catch (e) {
console.log("Error decoding message: " + e);