fixes #546 drag effect

This commit is contained in:
Danny Coates 2017-08-29 11:36:40 -07:00
parent 15244e1a64
commit 7abbc60e17
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -33,11 +33,13 @@ module.exports = function(state, emit) {
`;
function dragover(event) {
event.target.classList.add('ondrag');
const div = document.querySelector('.upload-window');
div.classList.add('ondrag');
}
function dragleave(event) {
event.target.classList.remove('ondrag');
const div = document.querySelector('.upload-window');
div.classList.remove('ondrag');
}
async function upload(event) {