From 9a698e333adc0349a4418d3d87c883174c94316c Mon Sep 17 00:00:00 2001 From: xing Date: Tue, 7 Apr 2020 20:22:47 +0800 Subject: [PATCH] ua --- tieba page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tieba page.js b/tieba page.js index b891746..dc5ec58 100644 --- a/tieba page.js +++ b/tieba page.js @@ -381,7 +381,8 @@ } function check() { - return navigator.userAgent.toLowerCase().indexOf('mobile') > -1; + let ua = navigator.userAgent.toLowerCase(); + return ua.indexOf('mobile') > -1 || ua.indexOf('phone'); } function createTime() {