mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
update readme
This commit is contained in:
1 parent
a8bd6f4e16
commit
c989d1291d
5 files changed
+15
-11
No files matched your search
@@ -1,6 +1,5 @@
|
||||
import './i18n';
|
||||
import './mail';
|
||||
import './useragent';
|
||||
import './paginate';
|
||||
import './hash.hydro';
|
||||
import './rank';
|
||||
|
||||
@@ -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 };
|
||||
Reference in new issue
Block a user