mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: 修复ua无法识别时打开home_security错误的问题
This commit is contained in:
1 parent
7c4de17e95
commit
8e90f24d01
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.19.0",
|
"version": "2.19.1",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export function parse(str: string) {
|
|||||||
return browser.parseUserAgent(str);
|
return browser.parseUserAgent(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function icon(str: string) {
|
export function icon(str: string = '') {
|
||||||
return str.split(' ')[0].toLowerCase();
|
return str.split(' ')[0].toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user