From a901ca6b8697f43c502ea1c2593eef805d3ff6d7 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Wed, 13 Jan 2021 12:08:49 +0100 Subject: [PATCH] Remove checks for OfficiallySignedDocument The rename/deploy has happened some time ago. --- src/dbp-official-signature-pdf-upload.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/dbp-official-signature-pdf-upload.js b/src/dbp-official-signature-pdf-upload.js index 113602b..9bbd1d3 100644 --- a/src/dbp-official-signature-pdf-upload.js +++ b/src/dbp-official-signature-pdf-upload.js @@ -288,13 +288,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem break; case "entryPointUrl": JSONLD.initialize(this.entryPointUrl, (jsonld) => { - let apiUrlBase; - try { - // Old name, remove eventually - apiUrlBase = jsonld.getApiUrlForEntityName("OfficiallySignedDocument"); - } catch(error) { - apiUrlBase = jsonld.getApiUrlForEntityName("AdvancedlySignedDocument"); - } + let apiUrlBase = jsonld.getApiUrlForEntityName("AdvancedlySignedDocument"); this.fileSourceUrl = apiUrlBase; }); break; -- GitLab