mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
完善翻译
This commit is contained in:
1 parent
7d3bdc2dd1
commit
2d3cee7753
13 files changed
+1308
-1280
No files matched your search
@@ -1,9 +1,11 @@
|
||||
const browser = require('detect-browser');
|
||||
|
||||
function get(str) {
|
||||
const ua = browser.parseUserAgent(str);
|
||||
console.log(ua);
|
||||
return ua;
|
||||
function parse(str) {
|
||||
return browser.parseUserAgent(str);
|
||||
}
|
||||
|
||||
global.Hydro.lib.useragent = module.exports = get;
|
||||
function icon(str) {
|
||||
return str.split(' ')[0].toLowerCase();
|
||||
}
|
||||
|
||||
global.Hydro.lib.useragent = module.exports = { parse, icon };
|
||||
Reference in new issue
Block a user