fixed download preview page render issues and links

This commit is contained in:
Danny Coates 2018-01-31 15:47:34 -08:00
parent 41a0c6c73f
commit 232911f725
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
5 changed files with 21 additions and 14 deletions

View file

@ -6,7 +6,7 @@ export default function(state, emitter) {
}
});
document.body.addEventListener('drop', event => {
if (state.route === '/' && !state.transfer) {
if (state.route === '/' && !state.uploading) {
event.preventDefault();
document.querySelector('.upload-window').classList.remove('ondrag');
const target = event.dataTransfer;