@automattic/social-previews 3.0.12 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -124,6 +124,7 @@ var googleDescription = firstValid(
124
124
  );
125
125
  var GoogleSearchPreview = ({
126
126
  description = "",
127
+ siteIcon,
127
128
  siteTitle,
128
129
  title = "",
129
130
  url = ""
@@ -136,7 +137,7 @@ var GoogleSearchPreview = ({
136
137
  "img",
137
138
  {
138
139
  className: "search-preview__icon",
139
- src: `https://www.google.com/s2/favicons?sz=128&domain_url=${domain}`,
140
+ src: siteIcon || `https://www.google.com/s2/favicons?sz=128&domain_url=${domain}`,
140
141
  alt: ""
141
142
  }
142
143
  ),