MCPcopy
hub / github.com/docsifyjs/docsify / on

Function on

src/core/fetch/ajax.js:16–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14export function get(url, hasBar = false, headers = {}) {
15 const xhr = new XMLHttpRequest();
16 const on = function () {
17 xhr.addEventListener.apply(xhr, arguments);
18 };
19
20 const cached = cache[url];
21

Callers 1

getFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected