We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a5053 commit 0b1b8dbCopy full SHA for 0b1b8db
templates/node/src/client.ts.twig
@@ -53,8 +53,12 @@ function getUserAgent() {
53
// @ts-ignore
54
ua += ` ${navigator.userAgent}`;
55
56
+ // @ts-ignore
57
+ } else if (typeof globalThis.EdgeRuntime === 'string') {
58
+ ua += ` EdgeRuntime`;
59
+
60
// Older Node.js versions don't have `navigator.userAgent`, so we have to use `process.version`.
- } else if (typeof process !== 'undefined') {
61
+ } else if (typeof process !== 'undefined' && typeof process.version === 'string') {
62
ua += ` Node.js/${process.version}`;
63
}
64
0 commit comments