File tree 2 files changed +9
-4233
lines changed
2 files changed +9
-4233
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,14 @@ function getDevice () {
21
21
var ipad = deviceInfo . model === 'iPad' ;
22
22
var ipod = deviceInfo . model === 'iPod' ;
23
23
var iphone = deviceInfo . model === 'iPhone' ;
24
+ var hms = ua . toLowerCase ( ) . indexOf ( 'arkweb' ) !== - 1 ;
25
+ var isLightOS = ua . toLowerCase ( ) . indexOf ( 'lightos' ) !== - 1 ;
24
26
25
27
device . android = android ;
26
28
device . iphone = iphone ;
27
29
device . ipad = ipad ;
30
+ device . hms = hms ;
31
+ device . isLightOS = isLightOS ;
28
32
29
33
device . result = result ;
30
34
device . osVersion = os . version ;
@@ -39,6 +43,11 @@ function getDevice () {
39
43
device . ios = true ;
40
44
}
41
45
46
+ // HarmonyOS
47
+ if ( hms ) {
48
+ device . os = 'HarmonyOS' ;
49
+ }
50
+
42
51
// Webview
43
52
device . webView = ( iphone || ipad || ipod ) && ua . match ( / .* A p p l e W e b K i t (? ! .* S a f a r i ) / i) ;
44
53
You can’t perform that action at this time.
0 commit comments