fixed paste email bug

This commit is contained in:
Danny Coates 2019-03-12 08:37:20 -07:00
parent 5b4f623070
commit 7710cf98e9
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB

View file

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