matthewhudson / current-device

📱 The easiest way to write conditional CSS and/or JavaScript based on device operating system (iOS, Android, Blackberry, Windows, Firefox OS, MeeGo), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).
https://matthewhudson.github.io/current-device/
MIT License
3.94k stars 588 forks source link

Lack of UA judgment for harmonyos. #375

Open declanchiu opened 3 months ago

declanchiu commented 3 months ago

image

Problem description:https://wubin.work/blog/articles/342

Because harmonyos is another self-developed system other than ios android, so when you open the h5 page embedded in an app using this system, the UA judgment for android is false and the UA information is displayed as harmonyos.

ayadagain commented 3 months ago

Hey @matthewhudson, is anyone working on this issue? I would love to try working on it as my first open-source contribution

declanchiu commented 3 months ago

Hey @matthewhudson, is anyone working on this issue? I would love to try working on it as my first open-source contribution嘿,有人在研究这个问题吗?我很乐意尝试将其作为我的第一个开源贡献

Got your back, bro.

matthewhudson commented 3 months ago

Thank you folks! I would love to see a PR for this @alimagedayad