Open colindresj opened 7 years ago
I just turned on client-side application logging and discovered that some of my users experience app crashes because of this. As it is now, pushy does not work with Internet Explorer.
Ok, so since this completely breaks IE for applications that use pushy, here's a quick workaround I've found:
In your compiler options add:
:install-deps true
:npm-deps {"element-closest" "2.0.2"}
And add ["element-closest"]
to :require
somewhere in your app. This will install the element-closest polyfill that provides the closest
method to browsers that do not support it. Requires a recent ClojureScript with :npm-deps
support.
Looks like pushy is using a function that isn't supported in IE. Might want to consider a polyfill or relying on
.parentNode
instead.Happy to put together a pull request based on any input.