MCPcopy Index your code
hub / github.com/rapi-doc/RapiDoc / viewResource

Function viewResource

src/utils/common-utils.js:158–168  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

156}
157
158export function viewResource(url) {
159 if (url) {
160 const a = document.createElement('a');
161 document.body.appendChild(a);
162 a.style = 'display: none';
163 a.href = url;
164 a.target = '_blank';
165 a.click();
166 a.remove();
167 }
168}

Callers 2

overviewTemplateFunction · 0.90

Calls 2

createElementMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…