textsecure.storage, chromium.js
This commit is contained in:
@@ -24,8 +24,8 @@ textsecure.registerOnLoadFunction(function() {
|
||||
Whisper.Messages.addIncomingMessage(message);
|
||||
console.log("Got message from " + message.pushMessage.source + "." + message.pushMessage.sourceDevice +
|
||||
': "' + getString(message.message.body) + '"');
|
||||
var newUnreadCount = storage.getUnencrypted("unreadCount", 0) + 1;
|
||||
storage.putUnencrypted("unreadCount", newUnreadCount);
|
||||
var newUnreadCount = textsecure.storage.getUnencrypted("unreadCount", 0) + 1;
|
||||
textsecure.storage.putUnencrypted("unreadCount", newUnreadCount);
|
||||
chrome.browserAction.setBadgeText({text: newUnreadCount + ""});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user