eligrey / eligrey/FileSaver.js

download canvas file in client side not working

Open
#723 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
22k
Forks
4.3k
PR merge metrics
No merged PRs in 30d

Description

nuxt + html2canvas + fileSaver

+ code

```js
html2canvas(this.$refs.content, {
useCORS: true
}).then(canvas => {
const fileName = `${this.detail.company_name}.jpg`;
canvas.toBlob(blob => {
saveAs(blob, fileName);
});
});
```

mobile browser

| browser | is working |
| --- | --- |
| chrome | ok |
| kuake | not |
| default | not |
| huawei | not |

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.