Closed paxdei closed 8 years ago
Weird I think it should work even in an iframe in any modern browser. Anyway the dist code is generated through babel as webstomp client is written in ES6. So either you can use the ES6 version or you should open an issue directly on the babel project
Le 29 août 2016 19:11, "Gottfried Huber" notifications@github.com a écrit :
See http://javascript.info/tutorial/instanceof and http://stackoverflow.com/questions/26248599/instanceof- htmlelement-in-iframe-is-not-element-or-object
I have this problem in a GWT application, where the application-script is loaded in a dedicated iframe.
Always have to hotfix it manually, thought it could go to the official source
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JSteunou/webstomp-client/issues/23, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNyt7ixyvd84XwPJ6TRymMpXgLtg960ks5qkxK9gaJpZM4Jvr3v .
Hi, I am actually referring to the ES6 source, client.js #369
Without "hacking" it to typeof it never passes this if test in my environment, so the error callback is not recognized
Still an issue? Here you can see this should work in a iframe https://jsfiddle.net/f3z2tv1f/
See http://javascript.info/tutorial/instanceof and http://stackoverflow.com/questions/26248599/instanceof-htmlelement-in-iframe-is-not-element-or-object
I have this problem in a GWT application, where the application-script is loaded in a dedicated iframe.
Always have to hotfix it manually, thought it could go to the official source