| 320 | |
| 321 | #if FETCH_SUPPORT_INDEXEDDB |
| 322 | function 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 | |