@hylid/env 3.3.0-alpha.2 → 3.3.0-alpha.21
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 +0 -7
- package/package.json +1 -1
package/lib/utils.js
CHANGED
|
@@ -43,13 +43,6 @@ export function getSettingName() {
|
|
|
43
43
|
platform: platform
|
|
44
44
|
}));
|
|
45
45
|
}
|
|
46
|
-
// 将 url 上的 __app__ 删除,避免影响分享的链接
|
|
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
|
-
}
|
|
53
46
|
var cached = localStorage.getItem('__hy_env__');
|
|
54
47
|
return cached ? JSON.parse(cached) : {};
|
|
55
48
|
}
|