Dispatch event instead of using a.click()
closes #465

added a changelog
closes #466

Made third argument as a object instead for easier transition to v2
This commit is contained in:
Jimmy Wärting
2018-09-26 17:04:34 +02:00
parent f3b45ae580
commit 70c261d026
8 changed files with 106 additions and 37 deletions
+2 -2
View File
@@ -60,10 +60,10 @@ import { saveAs } from 'file-saver/FileSaver';
```
```js
FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Boolean autoBOM)
FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Object { autoBOM })
```
Pass `true` for `autoBOM` if you want FileSaver.js to automatically provide Unicode text encoding hints (see: [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark)).
Pass `{ autoBOM: true }` if you want FileSaver.js to automatically provide Unicode text encoding hints (see: [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark)).
Examples
--------