mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03:00
fixes #546 drag effect
This commit is contained in:
@@ -33,11 +33,13 @@ module.exports = function(state, emit) {
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
function dragover(event) {
|
function dragover(event) {
|
||||||
event.target.classList.add('ondrag');
|
const div = document.querySelector('.upload-window');
|
||||||
|
div.classList.add('ondrag');
|
||||||
}
|
}
|
||||||
|
|
||||||
function dragleave(event) {
|
function dragleave(event) {
|
||||||
event.target.classList.remove('ondrag');
|
const div = document.querySelector('.upload-window');
|
||||||
|
div.classList.remove('ondrag');
|
||||||
}
|
}
|
||||||
|
|
||||||
async function upload(event) {
|
async function upload(event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user