MCPcopy Index your code
hub / github.com/github/docs / addLink

Function addLink

script/bookmarklets/pr-link-source.js:84–91  ·  view source on GitHub ↗
(span, link_name, link_href)

Source from the content-addressed store, hash-verified

82 }
83
84 function addLink(span, link_name, link_href) {
85 var anchor = document.createElement("A");
86 anchor.innerHTML = link_name;
87 anchor.href = link_href;
88 anchor.target = "_blank";
89 span.appendChild(anchor);
90 return span;
91 }
92})();

Callers 1

pr-link-source.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected