You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 8, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 8, 2024. It is now read-only.
My understanding is that callback could be declared as a var (when doing so, I get rid of the error). I'm not completely sure what's causing this to happen, because when I use push.js directly, I don't get the error.
UPDATE: disabling strict mode in rollup solved this for me, maybe someone can clarify why callback needs to be undeclared in push.js? I'm sure I'm missing something.
Thanks for the clarification and for the amazing library!
Hmm.. I can look into it, but at first glance it seems the callback declaration is missing a var, which is not allowed in strict mode. What I should probably do is add back that var and add a 'use strict' at the top of the file. Thanks for bringing it to my attention and thanks for using Push!
Activity
Nickersoft commentedon Feb 10, 2017
Hmm.. I can look into it, but at first glance it seems the callback declaration is missing a
var, which is not allowed in strict mode. What I should probably do is add back thatvarand add a'use strict'at the top of the file. Thanks for bringing it to my attention and thanks for using Push!