core: 修复ua无法识别时打开home_security错误的问题

This commit is contained in:
undefined committed 2021-03-02 23:29:49 +08:00
1 parent 7c4de17e95
commit 8e90f24d01
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.19.0",
"version": "2.19.1",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
+1 -1
View File
@@ -4,7 +4,7 @@ export function parse(str: string) {
return browser.parseUserAgent(str);
}
export function icon(str: string) {
export function icon(str: string = '') {
return str.split(' ')[0].toLowerCase();
}