radames commited on
Commit
2487de0
·
1 Parent(s): a9098aa

not need to clone

Browse files
Files changed (1) hide show
  1. code.js +1 -1
code.js CHANGED
@@ -183,7 +183,7 @@ async function fetchArrayBuffer(url) {
183
  return new Uint8Array(data);
184
  }
185
  const res = await fetch(url, { cache: "force-cache" });
186
- cache.put(url, res.clone());
187
  return new Uint8Array(await res.arrayBuffer());
188
  }
189
 
 
183
  return new Uint8Array(data);
184
  }
185
  const res = await fetch(url, { cache: "force-cache" });
186
+ cache.put(url, res);
187
  return new Uint8Array(await res.arrayBuffer());
188
  }
189