mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix mobile render logic.
This commit is contained in:
parent
a8155fc06e
commit
1356e433a6
@ -51,7 +51,7 @@ class Capability {
|
||||
|
||||
// Had been overwrited for mobile ...
|
||||
if (!result && this.isMobile) {
|
||||
const mobileCapability: EditorRenderMode[] = mapping.desktop?.hidden;
|
||||
const mobileCapability: EditorRenderMode[] = mapping.mobile?.hidden;
|
||||
result = mobileCapability?.includes(this.mode);
|
||||
}
|
||||
}
|
||||
@ -85,7 +85,7 @@ class Capability {
|
||||
|
||||
// Had been overwrited for mobile ...
|
||||
if (!result && this.isMobile) {
|
||||
const mobileCapability: EditorRenderMode[] = mapping.desktop?.hidden;
|
||||
const mobileCapability: EditorRenderMode[] = mapping.mobile?.hidden;
|
||||
result = mobileCapability?.includes(this.mode);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user