asdfasdfasdf
This commit is contained in:
parent
d3e5482f3f
commit
91d7214b34
|
@ -76,7 +76,7 @@ function share_on_mastodon() {
|
|||
var url = window.location.href;
|
||||
|
||||
// get the page title from the og:title meta tag, if it exists.
|
||||
var title = document.querySelectorAll('meta[property="og:title"]')[0].getattribute("content");
|
||||
var title = document.querySelectorAll('meta[property="og:title"]')[0].getAttribute("content");
|
||||
|
||||
// Otherwise, use the <title> tag as the title
|
||||
if (!title) var title = document.getElementsByTagName("title")[0].innerHTML;
|
||||
|
|
Loading…
Reference in New Issue