From be0eb76017468d9f44241a53d8a67f895ebf0565 Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Wed, 19 Jun 2024 16:32:42 -0500 Subject: [PATCH] specify card-metadata json --- src/app/card/card.page.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/card/card.page.ts b/src/app/card/card.page.ts index 0e5f473..c582ac1 100644 --- a/src/app/card/card.page.ts +++ b/src/app/card/card.page.ts @@ -119,7 +119,7 @@ export class CardPage implements OnInit, OnDestroy { this.document.body.removeEventListener('keydown', this.backListener); } - this.document.querySelector('script[type="application/ld+json"]')?.remove(); + this.document.querySelector('#card-metadata')?.remove(); } loadCardData(id: string) { @@ -195,6 +195,7 @@ export class CardPage implements OnInit, OnDestroy { this.title.setTitle(`Leder Card Library - ${cardData.name}`); const ldData = this.document.createElement('script'); + ldData.id = 'card-metadata'; ldData.type = 'application/ld+json'; ldData.textContent = `