From 5dbe1f2a5e7e63e5d44c2e025554675affdf3c32 Mon Sep 17 00:00:00 2001 From: johndoh Date: Mon, 11 Dec 2017 08:07:06 +0000 Subject: [PATCH] A device can't be a tablet and a mobile (#6086) --- program/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/js/common.js b/program/js/common.js index dcab781b2..08990b9f9 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -89,8 +89,8 @@ function roundcube_browser() if (this.safari && (/;\s+([a-z]{2})-[a-z]{2}\)/.test(this.agent_lc))) this.lang = RegExp.$1; - this.tablet = /ipad|android|xoom|sch-i800|playbook|tablet|kindle/i.test(this.agent_lc); this.mobile = /iphone|ipod|blackberry|iemobile|opera mini|opera mobi|mobile/i.test(this.agent_lc); + this.tablet = !this.mobile && /ipad|android|xoom|sch-i800|playbook|tablet|kindle/i.test(this.agent_lc); this.touch = this.mobile || this.tablet; this.pointer = typeof window.PointerEvent == "function"; this.cookies = n.cookieEnabled;