Browse Source

Update arguments in "thumbnail:generated" callback docs

The first argument is not the file ID, but the whole file object.
Janko Marohnić 6 năm trước cách đây
mục cha
commit
c64318a6e4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      website/src/docs/thumbnail-generator.md

+ 2 - 2
website/src/docs/thumbnail-generator.md

@@ -76,10 +76,10 @@ If both width and height are given, only width is taken into account.
 
 ## Event
 
-`thumbnail:generated` event is emitted with `fileID` and `preview` local url as arguments:
+`thumbnail:generated` event is emitted with `file` and `preview` local url as arguments:
 
 ```js
-uppy.on('thumbnail:generated', (fileID, preview) => {
+uppy.on('thumbnail:generated', (file, preview) => {
   const img = document.createElement('img')
   img.src = preview
   img.width = 100