From 9cd021d20f7d93f4d06a67ba3b4e0c94b735c4fa Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Tue, 7 Nov 2017 13:52:43 -0500 Subject: [PATCH] for debug, set uppy instance to global[this.opts.id], so we can do window.myUppyID.state --- src/core/Core.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/Core.js b/src/core/Core.js index 40554f0a2..b92dbf3fe 100644 --- a/src/core/Core.js +++ b/src/core/Core.js @@ -115,10 +115,9 @@ class Uppy { // for debugging and testing // this.updateNum = 0 if (this.opts.debug) { - global.UppyState = this.state global.uppyLog = '' - // global.UppyAddFile = this.addFile.bind(this) - global._uppy = this + global[this.opts.id] = this + // global._uppy = this } }