recommend user to use Google Chrome

This commit is contained in:
RockYang
2024-09-15 10:25:50 +08:00
parent 829fb879a6
commit 603bfa7def
2 changed files with 10 additions and 0 deletions

View File

@@ -232,4 +232,9 @@ export const replaceImg =(img) => {
}
return img
}
export function isChrome() {
const userAgent = navigator.userAgent.toLowerCase();
return /chrome/.test(userAgent) && !/edg/.test(userAgent);
}