skip centered mode for mobile

This commit is contained in:
SrGooglo 2023-06-13 22:52:58 +00:00
parent e4f1e3ed0e
commit 56d216e895

View File

@ -112,6 +112,11 @@ export default class Layout extends React.PureComponent {
toogleCenteredContent: (to) => {
const root = document.getElementById("root")
if (app.isMobile) {
console.warn("Skipping centered content on mobile")
return false
}
if (!root) {
console.error("root not found")
return false