aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/client.js3
-rw-r--r--src/client/Main.hx1
2 files changed, 4 insertions, 0 deletions
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;
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 96d9ad0..079ff50 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -615,6 +615,7 @@ class Main {
function setConfig(config:Config):Void {
this.config = config;
+ if (Utils.isTouch()) config.requestLeaderOnPause = false;
pageTitle = config.channelName;
final login:InputElement = cast ge("#guestname");
login.maxLength = config.maxLoginLength;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage