clean log && update readme

This commit is contained in:
Gabe Yuan
2023-07-20 14:56:10 +08:00
parent 787bfcd42a
commit 40f5eebba3
16 changed files with 15 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ export { I18N, UI_LANGS } from "./i18n";
const APP_NAME = process.env.REACT_APP_NAME.trim().split(/\s+/).join("-");
export const APP_LCNAME = APP_NAME.toLowerCase();
export const APP_VERSION = "1.1.1";
export const APP_VERSION = "1.1.2";
export const STOKEY_MSAUTH = `${APP_NAME}_msauth`;
export const STOKEY_SETTING = `${APP_NAME}_setting`;

View File

@@ -52,6 +52,5 @@ export const matchRule = (rules, href) =>
*/
export const detectLang = async (q) => {
const res = await browser?.i18n.detectLanguage(q);
console.log("detecLang", q, res);
return res?.languages?.[0]?.language;
};