Преглед на файлове

tus: remove moved upload-started events

ap-- преди 7 години
родител
ревизия
0bcb347fe4
променени са 1 файла, в които са добавени 0 реда и са изтрити 5 реда
  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) {
       if (!file.isPaused) {
         upload.start()
         upload.start()
       }
       }
-      if (!file.isRestored) {
-        this.uppy.emit('upload-started', file, upload)
-      }
     })
     })
   }
   }
 
 
@@ -227,8 +224,6 @@ module.exports = class Tus extends Plugin {
           .catch(reject)
           .catch(reject)
       }
       }
 
 
-      this.uppy.emit('upload-started', file)
-
       fetch(file.remote.url, {
       fetch(file.remote.url, {
         method: 'post',
         method: 'post',
         credentials: 'include',
         credentials: 'include',