Fix popup refreshing on send
This commit is contained in:
parent
732f9ac089
commit
e492aae172
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue