It works because of this code part on your page:
let origin = "https://codinhood.com/"; if (typeof window !== "undefined") { origin = window.location.origin; }
Twitterbot will use something like this to crawl the site: curl -v -A Twitterbot https://codinhood.com/post/visualizing-apple-deaths.
curl -v -A Twitterbot https://codinhood.com/post/visualizing-apple-deaths
The window will not be available there. You can see that in the curl response, because there you have a duplicate slash character in you URL.
window
You are right
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It works because of this code part on your page:
Twitterbot will use something like this to crawl the site:
curl -v -A Twitterbot https://codinhood.com/post/visualizing-apple-deaths
.The
window
will not be available there. You can see that in the curl response, because there you have a duplicate slash character in you URL.You are right