react-device-detect icon indicating copy to clipboard operation
react-device-detect copied to clipboard

isBrowser not working on Chrome , always be mobile mode. Safari is ok

Open ChenYCL opened this issue 4 years ago • 3 comments

image image

ChenYCL avatar Jan 20 '21 03:01 ChenYCL

Having the same issue.

nick-tw avatar Jan 30 '21 11:01 nick-tw

I had the same problem when rendering static pages. I fixed it by using the JSX syntax instead of checking the boolean value manually.

It looks like the value is only checked during site generation instead of dynamically in the browser.

ZebTheWizard avatar Feb 14 '21 20:02 ZebTheWizard

Assuming they're rendering a static page, then this isn't a bug.

tyler-ground avatar Jun 21 '21 23:06 tyler-ground