summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/create_comment/create_comment.jsx2
-rw-r--r--webapp/components/create_post.jsx2
-rw-r--r--webapp/utils/user_agent.jsx2
3 files changed, 3 insertions, 3 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();
}
}
diff --git a/webapp/utils/user_agent.jsx b/webapp/utils/user_agent.jsx
index 1074b02e2..c16d61d45 100644
--- a/webapp/utils/user_agent.jsx
+++ b/webapp/utils/user_agent.jsx
@@ -64,7 +64,7 @@ export function isIosWeb() {
}
export function isIos() {
- return userAgent.indexOf('iPhone') !== -1;
+ return userAgent.indexOf('iPhone') !== -1 || userAgent.indexOf('iPad') !== -1;
}
export function isAndroid() {