rubycentral/cfp-app

View on GitHub
app/javascript/helpers.js

Summary

Maintainability
A
0 mins
Test Coverage
export var getMeta = function(metaName) {
  const metas = document.getElementsByTagName("meta");

  for (let i = 0; i < metas.length; i++) {
    if (metas[i].getAttribute("name") === metaName) {
      return metas[i].getAttribute("content");
    }
  }

  return "";
}