eligrey / eligrey/FileSaver.js
TypeError: Argument 1 of EventTarget.dispatchEvent does not implement interface Event
Open
- Dominant language
- JavaScript
- Stars
- 22k
- Forks
- 4.3k
- PR merge metrics
- No merged PRs in 30d
Description
Doesn't seem to work.... using `min` file in a script in the head.
```js
//...
try {
var isFileSaverSupported = !!new Blob();
} catch (e) {
alert("blob not supported");
}
// Get the SVG HTML
var html = svg.outerHTML
// Make the blob thing and save it
var blob = new Blob([html], {type: "image/svg+xml"});
saveAs(blob, id + ".svg");
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.