comic.js icon indicating copy to clipboard operation
comic.js copied to clipboard

COMIC.magic not working in Chrome > 48.x

Open jnccneto opened this issue 10 years ago • 2 comments

Hi Just testing the framework and it seems not ready to work.

Just doing a simple example from your info:

COMIC.magic([ document.getElementById('ShowImagesInDB1'), document.getElementById('ShowImagesInDB2') ]);

and get this: comic.js:639 Uncaught error: no drawing element given

How to use this function? Also is there a callback?

jnccneto avatar Mar 16 '16 09:03 jnccneto

First of all sorry for the late reply, I was very busy with other work. I can confirm the issue: one Chrome > 50.x the pathSegList API which was part of SVG 1 specification has gone missing. Imho a very sad decision, you can read the story here:

Remove the SVG pathSegList interface

At the moment the best advice I can give is do not use Chrome. I will try to implement a workaround but I cannot promise when. And one tiny note: please do not forget this is a beta version, it is definitely not ready.

balint42 avatar May 17 '16 21:05 balint42

I have now updated the code to support a polyfill that makes comic.js work in all chrome versions. Please see the README.md. I will leave this issue open for some time for others to read.

balint42 avatar May 17 '16 22:05 balint42