diff --git a/src/dbp-official-signature-pdf-upload.js b/src/dbp-official-signature-pdf-upload.js index 6c2437688240308c3bd194b29f8fd3b28ca4d140..4bc0f2e4ba1ac44516cccf088f51e948dced6118 100644 --- a/src/dbp-official-signature-pdf-upload.js +++ b/src/dbp-official-signature-pdf-upload.js @@ -177,7 +177,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem }); const annotations = this.takeAnnotationsFromQueue(key); - await this.uploadFile(file, params, annotations, i18n); + await this.uploadFile(file, params, annotations); this.uploadInProgress = false; } diff --git a/src/dbp-signature-lit-element.js b/src/dbp-signature-lit-element.js index 6808ebc3e6c1d8793400166ebed4dc1c8459ace2..1fe6400f47069686cd5c405dbe3f5d339afe7c44 100644 --- a/src/dbp-signature-lit-element.js +++ b/src/dbp-signature-lit-element.js @@ -288,17 +288,16 @@ export default class DBPSignatureLitElement extends DBPSignatureBaseLitElement { * @param file * @param params * @param annotations - * @param i18n * @returns {Promise<void>} */ - async uploadFile(file, params = {}, annotations = [], i18n = {}) { + async uploadFile(file, params = {}, annotations = []) { this.uploadInProgress = true; this.uploadStatusFileName = file.name; let formData = new FormData(); // add annotations if (annotations.length > 0) { - file = await this.addAnnotationsToFile(file, annotations, i18n); + file = await this.addAnnotationsToFile(file, annotations); console.log("uploadFile file", file); // Also send annotations to the server so they get included in the signature block