From 3873224e8b764e4507fb127603314ed5412ead81 Mon Sep 17 00:00:00 2001 From: RblSb Date: Sat, 11 Dec 2021 14:01:49 +0300 Subject: Disable auto-leader on mobile devices --- res/client.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'res') diff --git a/res/client.js b/res/client.js index 529ff48..5ad7ebf 100644 --- a/res/client.js +++ b/res/client.js @@ -1733,6 +1733,9 @@ client_Main.prototype = { } ,setConfig: function(config) { this.config = config; + if(client_Utils.isTouch()) { + config.requestLeaderOnPause = false; + } this.pageTitle = config.channelName; window.document.querySelector("#guestname").maxLength = config.maxLoginLength; window.document.querySelector("#chatline").maxLength = config.maxMessageLength; -- cgit v1.2.3