From f2ff806f3f0fdd06fd41cb050cf5e05877be080c Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Fri, 23 Jun 2023 15:13:08 +0200 Subject: [PATCH] remove useless if from status web components --- nanopub-display/src/nanopub-status-icon.ts | 3 --- nanopub-display/src/nanopub-status.ts | 4 ---- 2 files changed, 7 deletions(-) diff --git a/nanopub-display/src/nanopub-status-icon.ts b/nanopub-display/src/nanopub-status-icon.ts index 8e9a835..76d34a7 100644 --- a/nanopub-display/src/nanopub-status-icon.ts +++ b/nanopub-display/src/nanopub-status-icon.ts @@ -35,9 +35,6 @@ export class NanopubStatusIcon extends LitElement { override async connectedCallback() { super.connectedCallback() - if (this.url.startsWith('https://purl.org/np/')) { - this.url = this.url.replace('https://purl.org/np/', 'http://purl.org/np/') - } if (this.url.endsWith('.trig')) { this.url = this.url.slice(0, -5) } diff --git a/nanopub-display/src/nanopub-status.ts b/nanopub-display/src/nanopub-status.ts index 15229d3..23bc16f 100644 --- a/nanopub-display/src/nanopub-status.ts +++ b/nanopub-display/src/nanopub-status.ts @@ -31,10 +31,6 @@ export class NanopubStatus extends LitElement { */ override async connectedCallback() { super.connectedCallback() - if (this.url.startsWith('https://purl.org/np/')) { - this.url = this.url.replace('https://purl.org/np/', 'http://purl.org/np/') - } - this.status = await getUpdateStatus(this.url) }