Selaa lähdekoodia

tus: remove moved upload-started events

ap-- 7 vuotta sitten
vanhempi
commit
0bcb347fe4
1 muutettua tiedostoa jossa 0 lisäystä ja 5 poistoa
  1. 0 5
      src/plugins/Tus.js

+ 0 - 5
src/plugins/Tus.js

@@ -203,9 +203,6 @@ module.exports = class Tus extends Plugin {
       if (!file.isPaused) {
         upload.start()
       }
-      if (!file.isRestored) {
-        this.uppy.emit('upload-started', file, upload)
-      }
     })
   }
 
@@ -227,8 +224,6 @@ module.exports = class Tus extends Plugin {
           .catch(reject)
       }
 
-      this.uppy.emit('upload-started', file)
-
       fetch(file.remote.url, {
         method: 'post',
         credentials: 'include',