From e492aae1724e855f4e15f7f40632f3e9cd8d4bdf Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 4 Apr 2014 05:50:26 -0400 Subject: [PATCH] Fix popup refreshing on send --- js/helpers.js | 1 + popup.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/helpers.js b/js/helpers.js index 0dd32c36f..608b27899 100644 --- a/js/helpers.js +++ b/js/helpers.js @@ -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); diff --git a/popup.html b/popup.html index e25051564..e76942291 100644 --- a/popup.html +++ b/popup.html @@ -17,7 +17,7 @@