fix
This commit is contained in:
parent
9e0f53a7e7
commit
83ec4a33ed
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue