Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

TypeError: Cannot read property 'addEventListener' of undefined" #69

Closed
DiscoTim opened this issue Aug 22, 2016 · 1 comment
Closed

Comments

@DiscoTim
Copy link

Hi, receiving this error on chrome mobile from the demo site.

08-22 01:07:33.115: I/chromium(32495): [INFO:CONSOLE(38)] "Uncaught (in promise) TypeError: Cannot read property 'addEventListener' of undefined", source: https://nickersoft.github.io/push.js/push.min.js (38)

I think it is because if it uses the service worker method, notification does not get defined.

its related to this issue #68

but i don't expect the events to work, those need to be done from within the service worker, for myself i just need it not to error getting the service worker loaded.

@Nickersoft
Copy link
Owner

A fix is on the way for this. For sake of simplicity, I'm going to post all updates on this fix to #68. Closing this for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants