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

@@ -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;
};