perf: error show
This commit is contained in:
@@ -78,6 +78,6 @@ export default Layout;
|
||||
|
||||
Layout.getInitialProps = ({ req }: any) => {
|
||||
return {
|
||||
isPcDevice: !/Mobile/.test(req ? req.headers['user-agent'] : navigator.userAgent)
|
||||
isPcDevice: !/Mobile/.test(req?.headers?.['user-agent'])
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user