Skip to content
Snippets Groups Projects
Commit 8e5e6f90 authored by syuilo's avatar syuilo
Browse files

fix(client): PWAでlangがnullになる現象の応急処置

#10202
parent f6c6ffaf
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,10 @@
renderError('META_FETCH_V');
return;
}
// for https://github.com/misskey-dev/misskey/issues/10202
if (lang == null || lang.toString == null || lang.toString() === 'null') lang = 'en-US';
const localRes = await window.fetch(`/assets/locales/${lang}.${v}.json`);
if (localRes.status === 200) {
localStorage.setItem('lang', lang);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment