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 download CSV on IE #148

Merged
merged 1 commit into from
Jun 10, 2020
Merged

Fix download CSV on IE #148

merged 1 commit into from
Jun 10, 2020

Conversation

JasonChong96
Copy link
Contributor

@JasonChong96 JasonChong96 commented Jun 3, 2020

Problem

Downloading links as CSV does not work on IE as saveAs with a blob input does not work on IE11.

Closes [#134]

Solution

By changing the blob constructor input into csv type and changing the string into something recognizable by both IE11 and modern browsers and using msSaveBlob for IE, all supported browsers should be able to download links with the same behavior as before.

Tests

  1. Download Links on Chrome on develop branch
  2. Download Links on Chrome on this branch
  3. Download links on IE11 on this branch
  4. Both downloads should work. Run a diff between the files from steps 1, 2 and 3, there should be no output.

@JasonChong96 JasonChong96 linked an issue Jun 3, 2020 that may be closed by this pull request
Copy link
Contributor

@liangyuanruo liangyuanruo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To address merge conflicts and get PR in a good state for review.

Base automatically changed from ie-banner to develop June 10, 2020 05:29
@liangyuanruo liangyuanruo merged commit 930a315 into develop Jun 10, 2020
@liangyuanruo liangyuanruo deleted the ie-download branch June 10, 2020 06:08
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.

Problem with downloading links on IE11
2 participants