hellfire 0.28.17 → 0.28.19
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 +8 -0
- package/dist/.DS_Store +0 -0
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.28.19](http://10.16.100.57/diffusion/115/paladin/compare/v0.28.18...v0.28.19) (2025-02-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.28.18](http://10.16.100.57/diffusion/115/paladin/compare/v0.28.17...v0.28.18) (2025-02-21)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [0.28.17](http://10.16.100.57/diffusion/115/paladin/compare/v0.28.16...v0.28.17) (2025-02-17)
|
|
6
14
|
|
|
7
15
|
|
package/dist/.DS_Store
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -848,9 +848,27 @@ var getEngineName = function getEngineName() {
|
|
|
848
848
|
var isDeviceTypeDesktop = function isDeviceTypeDesktop() {
|
|
849
849
|
return deviceType === 'desktop';
|
|
850
850
|
};
|
|
851
|
+
/**
|
|
852
|
+
* ua-parse-js 0.7.40版已支持鸿蒙,但在云诊中和别的依赖有冲突,最终会变成老版本的ua
|
|
853
|
+
* 暂时修改成手动判断
|
|
854
|
+
*/
|
|
855
|
+
|
|
851
856
|
|
|
852
857
|
var isDeviceTypeMobile = function isDeviceTypeMobile() {
|
|
853
|
-
|
|
858
|
+
if (deviceType === 'mobile') {
|
|
859
|
+
return true;
|
|
860
|
+
} else {
|
|
861
|
+
// 手动判断鸿蒙
|
|
862
|
+
var ua = navigator.userAgent;
|
|
863
|
+
var isHarmony = ua.indexOf('HarmonyOS') > -1 || ua.indexOf('OpenHarmony') > -1 || ua.indexOf('ArkWeb') > -1;
|
|
864
|
+
var isMobile = ua.indexOf('Mobile') > -1 || ua.indexOf('Phone') > -1;
|
|
865
|
+
|
|
866
|
+
if (isHarmony && isMobile) {
|
|
867
|
+
return true;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
return false;
|
|
854
872
|
};
|
|
855
873
|
|
|
856
874
|
var isDeviceTypeTablet = function isDeviceTypeTablet() {
|