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

ella: downloadFile method not working on safari ios #48

Open
Ishitasinha7089 mannequin opened this issue Mar 16, 2022 · 0 comments
Open

ella: downloadFile method not working on safari ios #48

Ishitasinha7089 mannequin opened this issue Mar 16, 2022 · 0 comments

Comments

@Ishitasinha7089
Copy link
Mannequin

Ishitasinha7089 mannequin commented Mar 16, 2022

We are creating an anchor tag and setting its target to _blank and we are performing click action via javascript. Safari on ios is assuming it as a popup and is blocking it, it works when Block Popup is turned off.
Image from iOS.
Can we add check for Safari to avoid link.target='_blank, and then the file will open on same tab. One issue with this solution is that, on ios Safari and Chrome have same userAgents so it will be difficult to differentiate between them.

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

0 participants