@hylid/env 4.0.11 → 4.0.12

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/lib/utils.js CHANGED
@@ -44,6 +44,12 @@ export function getSettingName() {
44
44
  platform: platform
45
45
  }));
46
46
  }
47
+ if (clientMatch[1]) {
48
+ var search = window.location.search.replace(new RegExp("".concat(clientMatch[0], "(&)*")), '');
49
+ var hash = window.location.hash || '';
50
+ var newUrl = "".concat(window.location.pathname).concat(search).concat(hash);
51
+ history.replaceState(null, '', newUrl);
52
+ }
47
53
  var cached = localStorage.getItem('__hy_env__');
48
54
  // 兼容 cross-bridge 和 hylid-bridge 共存的情况
49
55
  if (!cached) {
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export default '4.0.11';
1
+ export default '4.0.12';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hylid/env",
3
- "version": "4.0.11",
3
+ "version": "4.0.12",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib"