Skip to content

Commit

Permalink
Minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Amphiluke committed Sep 25, 2021
1 parent dce365c commit 680e3fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Call this method to open the Save dialog and store raw contents in a file. The m
* file contents as a Blob instance,
* optional file name to display on default (the user may change it manually though).

To construct a Blob representation for a file contents, either use the [Blob constructor](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob) directly:
To construct a Blob representation for a file contents, either use the [`Blob` constructor](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob) directly:

```javascript
let blob = new Blob(["file contents"], {type: "text/plain"});
Expand All @@ -31,7 +31,7 @@ cordova.plugins.saveDialog.saveFile(blob, fileName).then(() => {
});
```

or apply other methods of blob generation (such as [Response.blob()](https://developer.mozilla.org/en-US/docs/Web/API/Response/blob) for a network-fetched content):
or apply other methods of blob generation (such as [`Response.blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Response/blob) for a network-fetched content):

```javascript
try {
Expand Down

0 comments on commit 680e3fb

Please sign in to comment.