hellfire 0.32.3 → 0.32.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.32.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.32.3...v0.32.4) (2025-12-19)
6
+
7
+
8
+
5
9
  ## [0.32.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.32.2...v0.32.3) (2025-12-17)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -921,15 +921,20 @@ var isDeviceTypeDesktop = function isDeviceTypeDesktop() {
921
921
  var isDeviceTypeMobile = function isDeviceTypeMobile() {
922
922
  if (deviceType === 'mobile') {
923
923
  return true;
924
- } else {
925
- // 手动判断鸿蒙
926
- var ua = navigator.userAgent;
927
- var isHarmony = ua.indexOf('HarmonyOS') > -1 || ua.indexOf('OpenHarmony') > -1 || ua.indexOf('ArkWeb') > -1;
928
- var isMobile = ua.indexOf('Mobile') > -1 || ua.indexOf('Phone') > -1;
924
+ } // 手动判断鸿蒙
929
925
 
930
- if (isHarmony && isMobile) {
931
- return true;
932
- }
926
+
927
+ var ua = navigator.userAgent;
928
+ var isAndroidPhone = /Android/i.test(ua);
929
+ var isHarmony = ua.indexOf('HarmonyOS') > -1 || ua.indexOf('OpenHarmony') > -1 || ua.indexOf('ArkWeb') > -1;
930
+ var isMobile = ua.indexOf('Mobile') > -1 || ua.indexOf('Phone') > -1;
931
+
932
+ if (isHarmony && isMobile) {
933
+ return true;
934
+ }
935
+
936
+ if (isAndroidPhone && isMobile) {
937
+ return true;
933
938
  }
934
939
 
935
940
  return false;