MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / fetchDeleteCachedData

Function fetchDeleteCachedData

src/Fetch.js:322–331  ·  view source on GitHub ↗
(db, fetch, onsuccess, onerror)

Source from the content-addressed store, hash-verified

320
321#if FETCH_SUPPORT_INDEXEDDB
322function fetchDeleteCachedData(db, fetch, onsuccess, onerror) {
323 if (!db) {
324#if FETCH_DEBUG
325 dbg('fetch: IndexedDB not available!');
326#endif
327 onerror(fetch, 0, 'IndexedDB not available!');
328 return;
329 }
330
331 var fetch_attr = fetch + {{{ C_STRUCTS.emscripten_fetch_t.__attributes }}};
332 var path = {{{ makeGetValue('fetch_attr', C_STRUCTS.emscripten_fetch_attr_t.destinationPath, '*') }}};
333 path ||= {{{ makeGetValue('fetch', C_STRUCTS.emscripten_fetch_t.url, '*') }}};
334

Callers 1

Fetch.jsFile · 0.85

Calls 2

dbgFunction · 0.50
onerrorFunction · 0.50

Tested by

no test coverage detected