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

Support old mobile safari #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Support old mobile safari #8

wants to merge 2 commits into from

Conversation

psineur
Copy link

@psineur psineur commented Mar 26, 2019

Old Mobile Safari (like iOS 9) doesn't support const keyword in strict mode and has no window.fetch either.

Changes:

  • Fix unhandled exceptions on import (es5 target + libs for Promise/Dom)
  • Add polyfill for window.fetch

Test plan:

  • using old iPad Mini with iOS 9.3.2 & webpack dev-server
  • load website (universal web/electron react-app) containing electron-ga, observe it's not loading - throws in rendered.bundle due to const keywords
  • apply changes, install electron-ga-psineur package
  • app should load now
  • network dev tools tab should have google-analytics.com/batch when events are sent

@psineur psineur changed the title tsconfig: target es5 to support old mobile safari Support old mobile safari Mar 26, 2019
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.

1 participant