main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
301 bytes
|
Line | |
---|
1 | export default function getUAString() {
|
---|
2 | var uaData = navigator.userAgentData;
|
---|
3 |
|
---|
4 | if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
---|
5 | return uaData.brands.map(function (item) {
|
---|
6 | return item.brand + "/" + item.version;
|
---|
7 | }).join(' ');
|
---|
8 | }
|
---|
9 |
|
---|
10 | return navigator.userAgent;
|
---|
11 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.