Skip to content

Commit 570b5a5

Browse files
committed
File objects are also Blob objects.
1 parent 1551e19 commit 570b5a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/load-image.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* Creates an object URL for a given File object.
2121
*
22-
* @param {File|Blob} blob File or Blob object
22+
* @param {Blob} blob Blob object
2323
* @returns {string|boolean} Returns object URL if API exists, else false.
2424
*/
2525
function createObjectURL(blob) {
@@ -51,7 +51,7 @@
5151
/**
5252
* Loads an image for a given File object.
5353
*
54-
* @param {File|Blob|string} file File or Blob object or image URL
54+
* @param {Blob|string} file Blob object or image URL
5555
* @param {Function|object} [callback] Image load event callback or options
5656
* @param {object} [options] Options object
5757
* @returns {HTMLImageElement|HTMLCanvasElement|FileReader|Promise} Object

0 commit comments

Comments
 (0)