Browse Source

remove catch(), because addFile is sync now

Artur Paikin 7 years ago
parent
commit
9f987579d0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/plugins/Webcam/index.js

+ 1 - 3
src/plugins/Webcam/index.js

@@ -238,9 +238,7 @@ module.exports = class Webcam extends Plugin {
       this.captureInProgress = false
       const dashboard = this.uppy.getPlugin('Dashboard')
       if (dashboard) dashboard.hideAllPanels()
-      return this.uppy.addFile(tagFile).catch(() => {
-        // Ignore
-      })
+      return this.uppy.addFile(tagFile)
     }, (error) => {
       this.captureInProgress = false
       throw error