From 83ec4a33edef8da2db9957266359bbf903403aa0 Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 10 Feb 2021 23:16:16 +0900 Subject: [PATCH] fix --- src/client/sw/lang.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/sw/lang.ts b/src/client/sw/lang.ts index 58657f381c..f0d3544c73 100644 --- a/src/client/sw/lang.ts +++ b/src/client/sw/lang.ts @@ -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();