browser icon indicating copy to clipboard operation
browser copied to clipboard

Mobile of Huawei

Open simo-an opened this issue 6 years ago • 2 comments

The ways to judge if it's Huawei browser is

'Huawei': u.indexOf('HuaweiBrowser') > -1||u.indexOf('HUAWEI') > -1

But i found that other browsers installed on huawei also contain HUAWEIIJKM.

Huawei's default browser's kernal is X5(QQBrowser), so i think regarding it as QQBrowser may be more reasonable.

simo-an avatar Mar 02 '20 01:03 simo-an

most browser is bese on Chromium, but I can't regarding it as Chromium

mumuy avatar Apr 08 '20 09:04 mumuy

楼上的意思应该是这种判断u.indexOf('HuaweiBrowser') > -1||u.indexOf('HUAWEI') > -1不能正确判断是否是华为浏览器。 因为华为手机上安装的其他浏览器,userAgent也包含HUSWEI这个字段,比如我的华为手机,自带的浏览器和安装的UC浏览器,判断都不正确

VYuLinLin avatar Aug 27 '20 08:08 VYuLinLin