mirror of https://github.com/zulip/zulip.git
mobile: Disable tutorial on mobile clients.
This commit is contained in:
parent
d7813ee6b3
commit
2c64626e7a
|
@ -2,10 +2,12 @@
|
|||
|
||||
var csrf_token;
|
||||
$(function () {
|
||||
// if the client is mobile, disable websockets for message sending
|
||||
// (it doesn't work on iOS for some reason).
|
||||
if (util.is_mobile()) {
|
||||
// if the client is mobile, disable websockets for message sending
|
||||
// (it doesn't work on iOS for some reason).
|
||||
page_params.use_websockets = false;
|
||||
// Also disable the tutorial; it's ugly on mobile.
|
||||
page_params.needs_tutorial = false;
|
||||
}
|
||||
|
||||
page_params.page_load_time = new Date().getTime();
|
||||
|
|
Loading…
Reference in New Issue