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