wishthis/node_modules/universal-user-agent/dist-src/browser.js
2022-01-21 09:28:41 +01:00

8 lines
149 B
JavaScript

export function getUserAgent() {
try {
return navigator.userAgent;
}
catch (e) {
return "<environment unknown>";
}
}