removed unused code
This commit is contained in:
parent
6ba3be8a0f
commit
932a2a4576
@ -3,20 +3,14 @@ export default function(state, emitter) {
|
|||||||
document.body.addEventListener('dragover', event => {
|
document.body.addEventListener('dragover', event => {
|
||||||
if (state.route === '/') {
|
if (state.route === '/') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
// const files = document.querySelector('.uploadedFilesWrapper');
|
|
||||||
// files.classList.add('uploadArea--noEvents');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
document.body.addEventListener('drop', event => {
|
document.body.addEventListener('drop', event => {
|
||||||
if (state.route === '/' && !state.uploading) {
|
if (state.route === '/' && !state.uploading) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
// document
|
emitter.emit('addFiles', {
|
||||||
// .querySelector('.uploadArea')
|
files: Array.from(event.dataTransfer.files)
|
||||||
// .classList.remove('uploadArea--dragging');
|
});
|
||||||
|
|
||||||
const files = Array.from(event.dataTransfer.files);
|
|
||||||
|
|
||||||
emitter.emit('addFiles', { files });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -35,14 +35,6 @@ import User from './user';
|
|||||||
window.appEmit = emitter.emit.bind(emitter);
|
window.appEmit = emitter.emit.bind(emitter);
|
||||||
let unsupportedReason = null;
|
let unsupportedReason = null;
|
||||||
|
|
||||||
emitter.on('render', () => {
|
|
||||||
if (state.animation) {
|
|
||||||
window.requestAnimationFrame(() => {
|
|
||||||
state.animation();
|
|
||||||
state.animation = null;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if (
|
if (
|
||||||
// Firefox < 50
|
// Firefox < 50
|
||||||
/firefox/i.test(navigator.userAgent) &&
|
/firefox/i.test(navigator.userAgent) &&
|
||||||
|
@ -67,8 +67,6 @@ module.exports = function(app) {
|
|||||||
});
|
});
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
app.get('/', language, pages.index);
|
app.get('/', language, pages.index);
|
||||||
app.get('/signin', language, pages.blank);
|
|
||||||
app.get('/uploads', language, pages.blank);
|
|
||||||
app.get('/oauth', language, pages.blank);
|
app.get('/oauth', language, pages.blank);
|
||||||
app.get('/legal', language, pages.legal);
|
app.get('/legal', language, pages.legal);
|
||||||
app.get('/jsconfig.js', require('./jsconfig'));
|
app.get('/jsconfig.js', require('./jsconfig'));
|
||||||
|
Loading…
Reference in New Issue
Block a user