MCPcopy
hub / github.com/docsifyjs/docsify / $fetch

Method $fetch

src/core/fetch/index.js:185–201  ·  view source on GitHub ↗
(cb = noop, $resetEvents = this.$resetEvents.bind(this))

Source from the content-addressed store, hash-verified

183 }
184
185 $fetch(cb = noop, $resetEvents = this.$resetEvents.bind(this)) {
186 const done = () => {
187 this.callHook('doneEach');
188 cb();
189 };
190
191 const onlyCover = this._fetchCover();
192
193 if (onlyCover) {
194 done();
195 } else {
196 this._fetch(() => {
197 $resetEvents();
198 done();
199 });
200 }
201 }
202
203 _fetchFallbackPage(path, qs, cb = noop) {
204 const { requestHeaders, fallbackLanguages, loadSidebar } = this.config;

Callers 2

initFetchMethod · 0.95
initRouterMethod · 0.80

Calls 2

_fetchCoverMethod · 0.95
_fetchMethod · 0.95

Tested by

no test coverage detected