进度bug修复

This commit is contained in:
tianmo committed 2026-10-30 16:08:36 +08:00
1 parent 406bf21b2a
commit 5799d5d049
7 files changed
+14 -6

No files matched your search

+2 -1
View File
@@ -25,7 +25,8 @@ function normalizeLocale(raw) {
function requestedLocale() {
try {
const fromUrl = new URLSearchParams(location.search).get('lang');
const params = new URLSearchParams(location.search);
const fromUrl = params.get('lang') || params.get('locale');
if (fromUrl) return fromUrl;
} catch (error) { /* No browser location. */ }
try {