mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 10:47:44 +00:00
restore: Add comment about get-data event.
This commit is contained in:
parent
3177ad415e
commit
8147ee0905
1 changed files with 3 additions and 0 deletions
|
|
@ -105,6 +105,9 @@ module.exports = class GoldenRetriever extends Plugin {
|
|||
)
|
||||
|
||||
const pluginData = {}
|
||||
// TODO Find a better way to do this?
|
||||
// Other plugins can attach a restore:get-data listener that receives this callback.
|
||||
// Plugins can then use this callback (sync) to provide data to be stored.
|
||||
this.uppy.emit('restore:get-data', (data) => {
|
||||
Object.assign(pluginData, data)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue