From a0a3d46d87a4ff6e2b13a6e2bf4fc16f4baaccf8 Mon Sep 17 00:00:00 2001
From: Patrizio Bekerle <patrizio@bekerle.com>
Date: Wed, 31 Mar 2021 11:07:00 +0200
Subject: [PATCH] remove obsolete i18n parameter (#37)

---
 src/dbp-official-signature-pdf-upload.js | 2 +-
 src/dbp-signature-lit-element.js         | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/dbp-official-signature-pdf-upload.js b/src/dbp-official-signature-pdf-upload.js
index 6c24376..4bc0f2e 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 6808ebc..1fe6400 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
-- 
GitLab