Skip to content

Conversation

@sstottelaar
Copy link

Currently it's not possible to see if the page hold a meta description or not, since it retrieves the first paragraph if there is nothing present. I've added a parameter that holds information if there was a meta description present or not, depending on the outcome.

@gabceb
Copy link
Owner

gabceb commented Jan 28, 2018

Hi! Thanks for your PR. Wouldnt !!client.description be equivalent to the newly added descriptionPresent prop?

@sstottelaar
Copy link
Author

I'm not sure. Currently if there is no description present, it will look for the first paragraph and get the description from there. So there is no way to tell if the tag is present or not, since it will always be filled. I'm not sure what the !! operator does in this case. Still learning JS, so if I'm mistaken please enlighten me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants