进度bug修复
This commit is contained in:
1 parent
406bf21b2a
commit
5799d5d049
7 files changed
+14
-6
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user