moved some text

This commit is contained in:
Jimmy Karl Roland Wärting
2016-05-31 09:46:57 +02:00
parent c0c85f387b
commit 47ff4cd74a
+3 -3
View File
@@ -82,6 +82,9 @@ canvas.toBlob(function(blob) {
}); });
``` ```
Note: The standard HTML5 `canvas.toBlob()` method is not available in all browsers.
[canvas-toBlob.js][6] is a cross-browser `canvas.toBlob()` that polyfills this.
### Saving File ### Saving File
You can save a File constructor without specifying a filename. The You can save a File constructor without specifying a filename. The
@@ -89,9 +92,6 @@ File itself already contains a name, There is a hand full of ways to get a file
instance (from storage, file input, new constructor) instance (from storage, file input, new constructor)
But if you still want to change the name, then you can change it in the 2nd argument But if you still want to change the name, then you can change it in the 2nd argument
Note: The standard HTML5 `canvas.toBlob()` method is not available in all browsers.
[canvas-toBlob.js][6] is a cross-browser `canvas.toBlob()` that polyfills this.
```js ```js
var file = new File(["Hello, world!"], "hello world.txt", {type: "text/plain;charset=utf-8"}); var file = new File(["Hello, world!"], "hello world.txt", {type: "text/plain;charset=utf-8"});
saveAs(file); saveAs(file);