Skip to content

Instantly share code, notes, and snippets.

@austinpray
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austinpray/76aee182d9e793b3ee27 to your computer and use it in GitHub Desktop.
Save austinpray/76aee182d9e793b3ee27 to your computer and use it in GitHub Desktop.
function getPresentationTitle() {
var metas = document.getElementsByTagName('meta');
for (i=0; i<metas.length; i++) {
if (metas[i].getAttribute("name") === "og:title") {
return metas[i].getAttribute("content");
}
}
return "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment