fix autoBom documentation

This commit is contained in:
Oskar Köök
2019-03-27 20:24:27 +02:00
committed by Jimmy Wärting
parent 04ca36440d
commit 3caf053bbd
+2 -2
View File
@@ -60,10 +60,10 @@ import { saveAs } from 'file-saver';
```
```js
FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Object { autoBOM })
FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Object { autoBom })
```
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)).
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)). Note that this is only done if your blob type has `charset=utf-8` set.
Examples
--------