Skip to content

Commit

Permalink
specify card-metadata json
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Jun 19, 2024
1 parent e4ca70d commit be0eb76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/card/card.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 = `
Expand Down

0 comments on commit be0eb76

Please sign in to comment.