mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-11-24 02:03:50 +08:00
9 lines
154 B
JavaScript
9 lines
154 B
JavaScript
|
export function getUserAgent() {
|
||
|
try {
|
||
|
return navigator.userAgent;
|
||
|
}
|
||
|
catch (e) {
|
||
|
return "<environment undetectable>";
|
||
|
}
|
||
|
}
|