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

Fix IE qr code generation #22

Merged
merged 1 commit into from
Apr 9, 2020

Conversation

waynetee
Copy link
Contributor

@waynetee waynetee commented Apr 9, 2020

Problem

#7

Currently, QR code generation is broken on Internet Explorer

Solution

As IE does not support svg.outerHTML, I used XMLSerializer instead.

As such, QR code generation and SVG download is now working, unfortunately, PNG download is still not working, this as IE forbids downloading a canvas that has been 'tainted' with an SVG inside (source)

Before & After Screenshots

BEFORE:
image

AFTER:
image

@waynetee waynetee requested a review from liangyuanruo April 9, 2020 13:42
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

Successfully merging this pull request may close these issues.

2 participants