Working background push.
This commit is contained in:
parent
b4ab726727
commit
41866cee95
|
@ -16,7 +16,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"background": {
|
"background": {
|
||||||
"pages": ["background.html"]
|
"scripts": [ "jquery.js", "jquery.atmosphere.js", "aes.js", "hmac-sha256.js", "lib-typedarrays.js",
|
||||||
|
"Long.min.js", "ByteBuffer.min.js", "ProtoBuf.min.js", "helpers.js", "background.js" ]
|
||||||
},
|
},
|
||||||
|
|
||||||
"options_page": "options.html"
|
"options_page": "options.html"
|
||||||
|
|
4
popup.js
4
popup.js
|
@ -37,8 +37,8 @@ if (storage.getUnencrypted("number_id") === undefined) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
|
$(window).bind('storage', function() {
|
||||||
console.log("Got push message from background.js " + JSON.stringify(request));
|
console.log("Got localStorage update");
|
||||||
fillMessages();
|
fillMessages();
|
||||||
});
|
});
|
||||||
fillMessages();
|
fillMessages();
|
||||||
|
|
Loading…
Reference in New Issue