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);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
<div id="send" style="display:none;">
|
||||
<form class="compose">
|
||||
<form class="compose" action="#">
|
||||
<input id="popup_send_numbers" type='text' placeholder="To">
|
||||
<div class='contacts'>
|
||||
<div id='me' class='contact'>
|
||||
|
|
Loading…
Reference in a new issue