You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First of all, thank you for this npm package. It actually helps me a lot. While I was working on a project, I have noticed it has a tiny issue when I tried to get og:image from head. Upon researching, I have found that you are trying to find'meta[name="og:image"]' where I think you should find 'meta[property="og:image"]'.
The text was updated successfully, but these errors were encountered:
That's a valid issue but some sites do attach the Social image with the name attribute. So we can check for the property attribute first if not present the fallback to the name attribute.
Hi,
First of all, thank you for this npm package. It actually helps me a lot. While I was working on a project, I have noticed it has a tiny issue when I tried to get
og:image
from head. Upon researching, I have found that you are trying to find'meta[name="og:image"]'
where I think you should find'meta[property="og:image"]'
.The text was updated successfully, but these errors were encountered: