Skip to content

Commit

Permalink
fix baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamfliper committed Oct 6, 2017
1 parent e7a7f8e commit fb2ff71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/renderer/dragNdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ document.ondragover = document.ondrop = (ev) => {

document.body.ondrop = (ev) => {
ev.preventDefault()
let previousBase = store.getters.mainCounter+1
for(let index of ev.dataTransfer.files){
store.commit('INCREMENT_MAIN_COUNTER')
}
for(let index in ev.dataTransfer.files){
if (index !== 'length' && index!=='item') {
getAsText(ev.dataTransfer.files[index], Number(index))
getAsText(ev.dataTransfer.files[index], previousBase+Number(index))
.then(resolve=>{
store.commit(
'ADD_FILE',{
Expand Down

0 comments on commit fb2ff71

Please sign in to comment.