mobile: Disable tutorial on mobile clients.

This commit is contained in:
Tim Abbott 2017-05-11 11:01:56 -07:00
parent d7813ee6b3
commit 2c64626e7a
1 changed files with 4 additions and 2 deletions

View File

@ -2,10 +2,12 @@
var csrf_token; var csrf_token;
$(function () { $(function () {
if (util.is_mobile()) {
// if the client is mobile, disable websockets for message sending // if the client is mobile, disable websockets for message sending
// (it doesn't work on iOS for some reason). // (it doesn't work on iOS for some reason).
if (util.is_mobile()) {
page_params.use_websockets = false; 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(); page_params.page_load_time = new Date().getTime();