summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/create_comment/create_comment.jsx2
-rw-r--r--webapp/components/create_post.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/create_comment/create_comment.jsx b/webapp/components/create_comment/create_comment.jsx
index 54f3f65ca..18648d0e9 100644
--- a/webapp/components/create_comment/create_comment.jsx
+++ b/webapp/components/create_comment/create_comment.jsx
@@ -455,7 +455,7 @@ export default class CreateComment extends React.Component {
}
focusTextbox = (keepFocus = false) => {
- if (keepFocus || !Utils.isMobile()) {
+ if (keepFocus || !UserAgent.isMobile()) {
this.refs.textbox.focus();
}
}
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx
index e7329c5f3..1a7771b9b 100644
--- a/webapp/components/create_post.jsx
+++ b/webapp/components/create_post.jsx
@@ -302,7 +302,7 @@ export default class CreatePost extends React.Component {
}
focusTextbox(keepFocus = false) {
- if (keepFocus || !Utils.isMobile()) {
+ if (keepFocus || !UserAgent.isMobile()) {
this.refs.textbox.focus();
}
}