This commit is contained in:
tamaina 2021-01-23 22:16:05 +09:00
parent 066c922f66
commit b44b8ff953

View file

@ -120,7 +120,7 @@ async function fetchLocale() {
if (!localeRes) { if (!localeRes) {
localeRes = await fetch(localeUrl); localeRes = await fetch(localeUrl);
const clone = localeRes?.clone() const clone = localeRes?.clone();
if (!clone?.clone().ok) return; if (!clone?.clone().ok) return;
caches.open(cacheName).then(cache => cache.put(localeUrl, clone)); caches.open(cacheName).then(cache => cache.put(localeUrl, clone));