My first action is ready

This commit is contained in:
SethCohen
2022-08-23 22:02:23 -04:00
commit 6df1acd6c0
422 changed files with 96578 additions and 0 deletions
+9
View File
@@ -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>";
}