fix: dont show extension button on mobile, fixes #575

This commit is contained in:
Hank Stoever
2020-09-23 05:59:37 -07:00
parent 7f65900fd6
commit 1580805317

View File

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