summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/index
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-31 12:00:16 +0100
committerjulian laplace <julescarbon@gmail.com>2022-10-31 12:00:16 +0100
commit341393513dc3622b6d59e5512a7ab11d82c7e6c3 (patch)
tree25eac45533edbf406f6afe7adcb707e7ad9726cd /public/assets/js/lib/views/index
parenta2bf5ad8689fb0f9c662cf2bb17a6d4890aba349 (diff)
redirect to /stream on mobile
Diffstat (limited to 'public/assets/js/lib/views/index')
-rw-r--r--public/assets/js/lib/views/index/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/index/index.js b/public/assets/js/lib/views/index/index.js
index cd5f650..b370c9e 100644
--- a/public/assets/js/lib/views/index/index.js
+++ b/public/assets/js/lib/views/index/index.js
@@ -50,7 +50,9 @@ var IndexView = View.extend({
$("#content").prepend($(".alert"));
}
}
- $(".search_form input").focus();
+ if (is_desktop) {
+ $(".search_form input").focus();
+ }
},
success: function () {