Github API

This commit is contained in:
Luis Fernando Molina committed 2021-01-06 10:55:01 +01:00
1 parent 2efbf9c8aa
commit a9012f1bbf
282 files changed
+128405 -3

No files matched your search

+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>";
}