mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-11 19:53:50 +08:00
recommend user to use Google Chrome
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user