Skip to content

Commit

Permalink
fix: id of the twitter description tag (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
muratgozel committed Jun 26, 2024
1 parent 41adf52 commit 92b17a2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Metapatcher {
if (this.features.includes("twitterTags")) {
const idTw = this.idPrefix + "-description-tw";
this.removeOne("meta", { id: idTw });
this.set("meta", { idTw, name: "twitter:description", content: description });
this.set("meta", { id: idTw, name: "twitter:description", content: description });
}
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metapatcher",
"version": "v4.3.2",
"version": "v4.3.3",
"description": "HTML document head management library with convenient api. Manage social media tags, icons, device specific tags and event structured data with html meta tags and JSONLD documents.",
"type": "module",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class Metapatcher {
if (this.features.includes('twitterTags')) {
const idTw = this.idPrefix + '-description-tw'
this.removeOne('meta', { id: idTw })
this.set('meta', { idTw, name: 'twitter:description', content: description })
this.set('meta', { id: idTw, name: 'twitter:description', content: description })
}

return this
Expand Down

0 comments on commit 92b17a2

Please sign in to comment.