From 8147ee09053a7cdcb6afe362802e4fdda537a56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Mon, 18 Dec 2017 10:44:10 +0100 Subject: [PATCH] restore: Add comment about get-data event. --- src/plugins/GoldenRetriever/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/GoldenRetriever/index.js b/src/plugins/GoldenRetriever/index.js index 5fa8728cc..3410c50c2 100644 --- a/src/plugins/GoldenRetriever/index.js +++ b/src/plugins/GoldenRetriever/index.js @@ -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) })