完善翻译

This commit is contained in:
undefined committed 2020-06-20 12:05:44 +08:00
1 parent 7d3bdc2dd1
commit 2d3cee7753
13 files changed
+1308 -1280

No files matched your search

+7 -5
View File
@@ -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 };