Fix mobile render logic.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-09 08:53:37 -07:00
parent a8155fc06e
commit 1356e433a6

View File

@ -51,7 +51,7 @@ class Capability {
// Had been overwrited for mobile ... // Had been overwrited for mobile ...
if (!result && this.isMobile) { if (!result && this.isMobile) {
const mobileCapability: EditorRenderMode[] = mapping.desktop?.hidden; const mobileCapability: EditorRenderMode[] = mapping.mobile?.hidden;
result = mobileCapability?.includes(this.mode); result = mobileCapability?.includes(this.mode);
} }
} }
@ -85,7 +85,7 @@ class Capability {
// Had been overwrited for mobile ... // Had been overwrited for mobile ...
if (!result && this.isMobile) { if (!result && this.isMobile) {
const mobileCapability: EditorRenderMode[] = mapping.desktop?.hidden; const mobileCapability: EditorRenderMode[] = mapping.mobile?.hidden;
result = mobileCapability?.includes(this.mode); result = mobileCapability?.includes(this.mode);
} }
} }