Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

ella: downloadFile method not working on safari ios #48

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

ella: downloadFile method not working on safari ios #48

Ishitasinha7089 opened this issue Mar 16, 2022 · 0 comments

Comments

@Ishitasinha7089
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant