This commit is contained in:
tamaina 2021-02-10 23:16:16 +09:00
parent 9e0f53a7e7
commit 83ec4a33ed

View file

@ -27,7 +27,7 @@ class SwLang {
return this.i18n = new Promise(async (res, rej) => { return this.i18n = new Promise(async (res, rej) => {
const localeUrl = `/assets/locales/${await this.lang}.${_VERSION_}.json`; const localeUrl = `/assets/locales/${await this.lang}.${_VERSION_}.json`;
let localeRes = await caches.match(localeUrl); let localeRes = await caches.match(localeUrl);
if (!localeRes) { if (!localeRes) {
localeRes = await fetch(localeUrl); localeRes = await fetch(localeUrl);
const clone = localeRes?.clone(); const clone = localeRes?.clone();