fix phone view

This commit is contained in:
Pierre Dubouilh
2019-02-02 15:43:02 +01:00
parent 66be990b84
commit 4e043d1b73
3 changed files with 8 additions and 6 deletions
-5
View File
@@ -33,11 +33,6 @@ const prependPath = a => a.startsWith('/') ? a : decodeURI(location.pathname) +
const prevent = e => e.preventDefault()
const flicker = w => w.classList.remove('runFade') || void w.offsetWidth || w.classList.add('runFade')
// Add upload icon on phones
if (typeof window.orientation !== 'undefined') {
icHolder.innerHTML = '<div onclick="document.getElementById(\'clickupload\').click()" class="ic icon-large-upload"></div>' + icHolder.innerHTML
}
// Manual upload
manualUpload.addEventListener('change', () => Array.from(manualUpload.files).forEach(f => isDupe(f.name) || postFile(f, '/' + f.name)), false)