mirror of
https://gitea.com/gitea/runner.git
synced 2026-08-25 13:27:46 +00:00
feat: support node20 runtime (#1988)
* feat: support node20 * fix * more fixes * maybe final fixes? * format
This commit is contained in:
Generated
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
export function getUserAgent() {
|
||||
if (typeof navigator === "object" && "userAgent" in navigator) {
|
||||
return navigator.userAgent;
|
||||
}
|
||||
if (typeof process === "object" && "version" in process) {
|
||||
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
|
||||
}
|
||||
return "<environment undetectable>";
|
||||
}
|
||||
Reference in New Issue
Block a user