Fixed Bug 52646 - iOS.Docs.Mobile. Fixed the type of device for the editor

This commit is contained in:
Nikita Gopienko 2021-09-21 12:17:26 +03:00
parent 7549ba691c
commit e87329f2d3

View File

@ -44,7 +44,7 @@ import i18n from "./i18n";
import Text from "@appserver/components/text";
import TextInput from "@appserver/components/text-input";
import Checkbox from "@appserver/components/checkbox";
import { isMobile } from "react-device-detect";
import store from "studio/store";
const { auth: authStore } = store;
@ -381,7 +381,7 @@ const Editor = () => {
setFavicon(config.documentType);
setDocumentTitle(docTitle);
if (window.innerWidth < 720) {
if (isMobile) {
config.type = "mobile";
}