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