Browse Source

Add return to prevent multiple uploads

Rongjian Zhang 6 years ago
parent
commit
11173c520b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/pasteManager.js

+ 1 - 0
app/pasteManager.js

@@ -19,6 +19,7 @@ export default function(state, emitter) {
       }
 
       emitter.emit('upload', { file, type: 'paste' });
+      return; // return here since only one file is allowed to be uploaded at a time
     }
   });
 }