mirror of
https://git.hmsn.ink/kospo/helptalk/api.git
synced 2026-03-20 23:23:37 +09:00
first
This commit is contained in:
11
sample/dev/talk/bundle/popper-2.11.8/esm/utils/userAgent.js
Normal file
11
sample/dev/talk/bundle/popper-2.11.8/esm/utils/userAgent.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export default function getUAString() {
|
||||
var uaData = navigator.userAgentData;
|
||||
|
||||
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
||||
return uaData.brands.map(function (item) {
|
||||
return item.brand + "/" + item.version;
|
||||
}).join(' ');
|
||||
}
|
||||
|
||||
return navigator.userAgent;
|
||||
}
|
||||
Reference in New Issue
Block a user