aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2018-04-10 17:57:08 +0200
committerstonedDiscord <stoned@derpymail.org>2018-04-10 17:57:08 +0200
commit26c12c9461be9c52057983f1240ac3bad57b68c1 (patch)
tree29f9656afd6560c6d67432908c4571027df2fb42
parent4335d8374b05041c521ab7f919ec545aaf5e6f6f (diff)
seems to work better on mobile
-rw-r--r--client.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/client.js b/client.js
index 0d42b30..e67fa23 100644
--- a/client.js
+++ b/client.js
@@ -7,6 +7,7 @@ var queryDict = {};
location.search.substr(1).split("&").forEach(function(item) {
queryDict[item.split("=")[0]] = item.split("=")[1]
})
+
//document.getElementById("client_wrapper").style = "width: 800px;";
/* Server magic */
//serv = new WebSocket("ws://51.255.160.217:50000");
@@ -62,6 +63,9 @@ var updater;
var CHECKupdater;
var serv;
var oldloading=false;
+if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) {
+ oldloading=true;
+}
var carea = 0;
var linifile;
var pinifile;