Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL polyfill not executed in jsdom and older browsers #53

Open
unional opened this issue Feb 24, 2017 · 2 comments
Open

URL polyfill not executed in jsdom and older browsers #53

unional opened this issue Feb 24, 2017 · 2 comments

Comments

@unional
Copy link

unional commented Feb 24, 2017

jsdom implements Blob and URL but not URL.createObjectURL: jsdom/jsdom#1721

Thus the following code prevent createObjectURL to be polyfilled.

	if (view.Blob && view.URL) {
		try {
			new Blob;
			return;
		} catch (e) {}
	}

Could the same thing happens to older browser?

Can I submit a PR?

This cause jspdf not able to run in jsdom

@jimmywarting
Copy link
Contributor

Can this be closed?

@unional
Copy link
Author

unional commented Apr 30, 2019

I'm not sure at the moment. Will see if I can dig up the test to validate it. Thanks for asking. 🌷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jimmywarting @unional and others