added password to upload form

This commit is contained in:
Danny Coates 2018-10-29 19:06:15 -07:00
parent 0e5202c470
commit 12e6eb1666
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
7 changed files with 153 additions and 17 deletions

View file

@ -7,6 +7,7 @@ function getString(item) {
export default function(state, emitter) {
window.addEventListener('paste', async event => {
if (state.route !== '/' || state.uploading) return;
if (event.target.type === 'password') return;
const items = Array.from(event.clipboardData.items);
const transferFiles = items.filter(item => item.kind === 'file');