Commit eadf90d 1 parent d020a45 commit eadf90d Copy full SHA for eadf90d
File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import (
21
21
"cogentcore.org/core/styles"
22
22
"cogentcore.org/core/styles/states"
23
23
"cogentcore.org/core/styles/units"
24
- "cogentcore.org/core/system"
25
24
"cogentcore.org/core/texteditor"
26
25
"cogentcore.org/core/tree"
27
26
"golang.org/x/net/html"
@@ -123,8 +122,8 @@ func handleElement(ctx *Context) {
123
122
case "pre" :
124
123
hasCode := ctx .Node .FirstChild != nil && ctx .Node .FirstChild .Data == "code"
125
124
if hasCode {
126
- if core .TheApp .SystemPlatform () == system . IOS { // TODO: remove this when fixed
127
- New [core.Text ](ctx ).SetText ("<i>Text editors are temporarily disabled on iOS mobile due to stability issues</i>" )
125
+ if core .TheApp .SystemPlatform (). IsMobile () { // TODO: remove this when fixed
126
+ New [core.Text ](ctx ).SetText ("<i>Text editors are temporarily disabled on mobile due to stability issues</i>" )
128
127
break
129
128
}
130
129
ed := New [texteditor.Editor ](ctx )
You can’t perform that action at this time.
0 commit comments