eligrey / eligrey/FileSaver.js
Blank page on Firefox/Android PWA
- Dominant language
- JavaScript
- Stars
- 22k
- Forks
- 4.3k
- PR merge metrics
- No merged PRs in 30d
Description
Opens a blank page on Firefox PWA ([A2HS](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen)) using an Android device. It works fine from the browser itself. I have also tested it from the Chrome (Android) and Safari (iOS) PWAs. They both work as expected.
Here is my code:
```
const download = (url, name) => {
let xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.responseType = 'blob';
xhr.onreadystatechange = (event) => {
if (event.target.readyState === 4) {
saveAs(event.target.response, `${name}.jpg`);
}
};
xhr.send();
};
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.