mirror of
https://github.com/actions/labeler.git
synced 2025-12-14 13:47:02 +00:00
build
This commit is contained in:
7
node_modules/universal-user-agent/dist-web/index.js
generated
vendored
7
node_modules/universal-user-agent/dist-web/index.js
generated
vendored
@@ -1,10 +1,11 @@
|
||||
function getUserAgent() {
|
||||
try {
|
||||
if (typeof navigator === "object" && "userAgent" in navigator) {
|
||||
return navigator.userAgent;
|
||||
}
|
||||
catch (e) {
|
||||
return "<environment undetectable>";
|
||||
if (typeof process === "object" && "version" in process) {
|
||||
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
|
||||
}
|
||||
return "<environment undetectable>";
|
||||
}
|
||||
|
||||
export { getUserAgent };
|
||||
|
||||
Reference in New Issue
Block a user