Browse Source

expose uppy on window for development, as before

Artur Paikin 5 years ago
parent
commit
94cca0acc9
2 changed files with 4 additions and 0 deletions
  1. 2 0
      examples/dev/Dashboard.js
  2. 2 0
      examples/dev/DragDrop.js

+ 2 - 0
examples/dev/Dashboard.js

@@ -46,6 +46,8 @@ module.exports = () => {
     .use(Form, { target: '#upload-form' })
     // .use(GoldenRetriever, {serviceWorker: true})
 
+  window.uppy = uppyDashboard
+
   uppyDashboard.on('complete', (result) => {
     if (result.failed.length === 0) {
       console.log('Upload successful 😀')

+ 2 - 0
examples/dev/DragDrop.js

@@ -15,6 +15,8 @@ module.exports = () => {
     .use(ProgressBar, { target: '#uppyDragDrop-progress', hideAfterFinish: false })
     .use(Tus, { endpoint: 'https://master.tus.io/files/' })
 
+  window.uppy = uppyDragDrop
+
   uppyDragDrop.on('complete', (result) => {
     if (result.failed.length === 0) {
       console.log('Upload successful 😀')