Skip to content

URL polyfill not executed in jsdom and older browsers #53

@unional

Description

@unional

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions