From 85841987fee5d620eaccbe6b9cd79af563862d84 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Thu, 22 Jul 2021 09:09:15 +0200 Subject: [PATCH] Remove console.log, add function parameter documentation and improve if-clause --- packages/file-handling/src/file-source.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/file-handling/src/file-source.js b/packages/file-handling/src/file-source.js index 3c0cae5f..984a6146 100644 --- a/packages/file-handling/src/file-source.js +++ b/packages/file-handling/src/file-source.js @@ -235,7 +235,7 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) { } else if (this.allowedMimeTypes && !this.checkFileType(file) ) { return; } -console.log("huiiii"); + await this.sendFileEvent(file, fileCount); }); @@ -247,7 +247,8 @@ console.log("huiiii"); } /** - * @param file, last + * @param file + * @param maxUpload */ sendFileEvent(file, maxUpload) { this.sendSource(); @@ -259,7 +260,7 @@ console.log("huiiii"); sendSource() { let data = {}; - if (this.activeTarget == 'nextcloud') { + if (this.activeTarget === 'nextcloud') { data = {"target": this.activeTarget, "path": this._("#nextcloud-file-picker").directoryPath}; } else { data = {"target": this.activeTarget}; -- GitLab