Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Farfurix committed Apr 11, 2019
1 parent 5617b8d commit ad40c96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client/sandbox/upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ export default class UploadSandbox extends SandboxBase {
}

// GH-1844
static _needToRaiseChangeEvent (fileList, inputInfoFiles) : boolean {
static _needToRaiseChangeEvent (filesToUpload, currentFiles) : boolean {
if (isFirefox || (isMacPlatform && isChrome || isSafari))
return true;

for (let i = 0; i < fileList.length; i++ ) {
for (const file of filesToUpload) {
let found = false;

for (let j = 0; j < inputInfoFiles.length; j++) {
if (fileList[i].name === inputInfoFiles[j].name) {
for (const currentFile of currentFiles) {
if (file.name === currentFile.name) {
found = true;
break;
}
Expand Down

0 comments on commit ad40c96

Please sign in to comment.