mirror of
https://github.com/zhigang1992/connect.git
synced 2026-04-25 13:45:39 +08:00
fix: dont show extension button on mobile, fixes #575
This commit is contained in:
@@ -51,8 +51,9 @@ const getBrowser = (): Browser | null => {
|
||||
|
||||
export const ExtensionButton: FC<BoxProps> = ({ ...rest }) => {
|
||||
const browser = getBrowser();
|
||||
const isMobile = window.matchMedia('only screen and (max-width: 760px)').matches;
|
||||
|
||||
if (browser === null) {
|
||||
if (browser === null || isMobile) {
|
||||
return <PoweredBy />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user