added password to upload form
This commit is contained in:
parent
0e5202c470
commit
12e6eb1666
7 changed files with 153 additions and 17 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue