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
I read, on threads about workers, that this error can be generated if a postMessage try to pass a parameter which is an object and this object has functions.
I think the error isthrown because HTMLElement specified in "target" is a complex object that the browser can't clone. If I remove it, and thus the _config passed in postMessage doesn't contain it, it works like a charm.
A solution may be to strip _config.target from config passed to workers
I take this opportunity to thank you for great work on quaggaJS, really useful plugin with a neat usability.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this bug. This is indeed a problem caused if the target is an HTML element. I'll try to remove it from the configuration which is passed into the worker. Good idea. I'll let you know as soon as it is fixed.
Hi,
I encountered a problem when a specific "target" is used in the configuration object. I paste here what I've said in #94 :
As soon as quagga start, an error is thrown
thrown by
I read, on threads about workers, that this error can be generated if a postMessage try to pass a parameter which is an object and this object has functions.
I think the error isthrown because HTMLElement specified in "target" is a complex object that the browser can't clone. If I remove it, and thus the _config passed in postMessage doesn't contain it, it works like a charm.
A solution may be to strip _config.target from config passed to workers
I take this opportunity to thank you for great work on quaggaJS, really useful plugin with a neat usability.
The text was updated successfully, but these errors were encountered: