update readme

This commit is contained in:
undefined committed 2023-01-24 01:44:41 +08:00
1 parent a8bd6f4e16
commit c989d1291d
5 files changed
+15 -11

No files matched your search

-1
View File
@@ -1,6 +1,5 @@
import './i18n';
import './mail';
import './useragent';
import './paginate';
import './hash.hydro';
import './rank';
-6
View File
@@ -3,9 +3,3 @@ import * as browser from 'detect-browser';
export function parse(str: string) {
return browser.parseUserAgent(str);
}
export function icon(str: string = '') {
return str.split(' ')[0].toLowerCase();
}
global.Hydro.lib.useragent = { parse, icon };