Uncaught TypeError: p.animatedPathSegList is not iterable
texxnik opened this issue · comments
Hey! when uploading a file, everything works well in Firefox, but in Chrome it works with an error!
Uncaught TypeError: p.animatedPathSegList is not iterable
at FileReader.fr.onloadend ((index):1207)
Google Chrome
Version 95.0.4638.54
Yep, you're right. I found this about 15 minutes after release...
Turns out I'm using a deprecated interface to get the SVG data I need from the uploaded file. Chrome deprecated it years ago while firefox keeps it for some reason.
I'm already porting it to the new interface, however there are lots of changes involved. I coded my own svg parser/rasterizer and it turns out that functionality is readily given by the new interface. I have it partially working already, but I can't dedicate much time right now.
So yes, it's firefox only for now, I'm sorry.
It now works in Chrome and Edge, as it uses the proper interface for SVG. SVG support should also be much improved, thanks to a flattening library I found.
Super! thanks! checked it works!