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); var proto = decodeIncomingPushMessageProtobuf(plaintext);
// After this point, a) decoding errors are not the server's fault, and // 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 // 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})); socket.send(JSON.stringify({type: 1, id: message.id}));
} catch (e) { } catch (e) {
console.log("Error decoding message: " + e); console.log("Error decoding message: " + e);

View file

@ -17,7 +17,7 @@
</ul> </ul>
</div> </div>
<div id="send" style="display:none;"> <div id="send" style="display:none;">
<form class="compose"> <form class="compose" action="#">
<input id="popup_send_numbers" type='text' placeholder="To"> <input id="popup_send_numbers" type='text' placeholder="To">
<div class='contacts'> <div class='contacts'>
<div id='me' class='contact'> <div id='me' class='contact'>