This commit is contained in:
tamaina 2021-02-10 23:16:16 +09:00
parent 9e0f53a7e7
commit 83ec4a33ed
1 changed files with 1 additions and 1 deletions

View File

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