MCPcopy
hub / github.com/gitalk/gitalk / getMetaContent

Function getMetaContent

src/util.js:38–45  ·  view source on GitHub ↗
(name, content)

Source from the content-addressed store, hash-verified

36})
37
38export const getMetaContent = (name, content) => {
39 /* istanbul ignore next */
40 content || (content = 'content')
41 /* istanbul ignore next */
42 const el = window.document.querySelector(`meta[name='${name}']`)
43 /* istanbul ignore next */
44 return el && el.getAttribute(content)
45}
46
47export const formatErrorMsg = err => {
48 let msg = 'Error: '

Callers 1

createIssueMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected