@hylid/env 0.0.90011267721-dev.2 → 0.0.90011267721-dev.3
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mpWebChecker } from "../checker";
|
|
2
|
-
import { getMatchName } from "../utils";
|
|
2
|
+
import { getMatchName, isClient } from "../utils";
|
|
3
3
|
export function getName4MpWeb() {
|
|
4
|
-
|
|
5
|
-
return getMatchName(mpWebChecker,
|
|
4
|
+
if (!isClient) return '';
|
|
5
|
+
return getMatchName(mpWebChecker, window.navigator.userAgent);
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { webChecker } from "../checker";
|
|
2
2
|
import { CLIENT } from "../constants";
|
|
3
|
-
import { getMatchName } from "../utils";
|
|
3
|
+
import { getMatchName, isClient } from "../utils";
|
|
4
4
|
export function getName4Web() {
|
|
5
|
-
|
|
6
|
-
return getMatchName(webChecker,
|
|
5
|
+
if (!isClient) return CLIENT.H5;
|
|
6
|
+
return getMatchName(webChecker, window.navigator.userAgent) || CLIENT.H5;
|
|
7
7
|
}
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '0.0.90011267721-dev.
|
|
1
|
+
export default '0.0.90011267721-dev.3';
|