]> git.mxchange.org Git - friendica-addons.git/commitdiff
Don't activate chat on mobile
authorMichael Vogel <icarus@dabo.de>
Mon, 2 Nov 2015 06:05:29 +0000 (07:05 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 2 Nov 2015 06:05:29 +0000 (07:05 +0100)
xmpp/xmpp.php

index 7ac7eb3b9816ffbf637eae62af1757749696f6df..07f01397408339492160ea0b179d9940ad0b7843 100644 (file)
@@ -53,6 +53,9 @@ function xmpp_converse(&$a,&$s) {
        if ($_GET["mode"] == "minimal")
                return;
 
+       if ($a->is_mobile || $a->is_tablet)
+               return;
+
        $a->page['htmlhead'] .= '<link type="text/css" rel="stylesheet" media="screen" href="addon/xmpp/converse/css/converse.css" />'."\n";
        $a->page['htmlhead'] .= '<script src="addon/xmpp/converse/builds/converse.min.js"></script>'."\n";