Initial commit
This commit is contained in:
11
wwwroot/lib/popper.js/esm/utils/userAgent.js
Normal file
11
wwwroot/lib/popper.js/esm/utils/userAgent.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export default function getUAString() {
|
||||
var uaData = navigator.userAgentData;
|
||||
|
||||
if (uaData != null && uaData.brands) {
|
||||
return uaData.brands.map(function (item) {
|
||||
return item.brand + "/" + item.version;
|
||||
}).join(' ');
|
||||
}
|
||||
|
||||
return navigator.userAgent;
|
||||
}
|
||||
Reference in New Issue
Block a user