Closed ghost closed 8 years ago
@cnsdato Thanks for the report. I guess maybe Edge is loading the worker source asynchronously? Not exactly sure. Ways we could deal with this:
revokeObjectURL
behavior could be controlled by an option.bare: true
lets you do the object URL creation and Worker construction yourself, we could just remove the revokeObjectURL
stuff from here, recommending instead that, where needed, people can do it themselves more safely by waiting until they've heard back from their worker before revoking.releaseURL
function onto the worker
before returning it, so that people can decide when to release the url without having to use the bare: true
version of the api.@substack preferences?
Going with (IMO) the simplest approach, which is to just attach objectURL
to the returned worker so that user code can decide if/when to revoke it.
@cnsdato Just pushed what I believe should be a fix for this and published as 1.3.0. It would be great if you could confirm?
@anandthakker Thanks for fixing this, I will give it a try in the next few days and will give you response on this.
Edit: looks good so far.
This was fixed.
V1.2.1 no longer working in Edge browser. V1.2.0 works fine.