Procházet zdrojové kódy

Update arguments in "thumbnail:generated" callback docs

The first argument is not the file ID, but the whole file object.
Janko Marohnić před 6 roky
rodič
revize
c64318a6e4
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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