On Sep 10, 2013, at 1:31 PM, Vidor Gencel <[email protected]> wrote:
> I have problems with simple push on ffos. Here is my code:
>
>
> var endpoint;
> $(document).ready(function() {
> registerPush();
> navigator.mozSetMessageHandler("push", function(message) {
> if(message.pushEndpoint == endpoint) {
…
Could this be a scoping issue? What happens if you move the ‘var endpoint;’
into the ‘$document.ready’ function?
S.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g