Skip to content

Commit 9d6c614

Browse files
committed
Browser node agent
1 parent 27998ad commit 9d6c614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/internal/bolt-agent/browser/bolt-agent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export function fromVersion (version: string): string {
2222
const APP_VERSION = window.navigator.appVersion
2323

2424
//APP_VERSION looks like 5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
25-
const OS = APP_VERSION.split(" ")[0];
25+
const OS = APP_VERSION.split("(")[1].split(")")[0];
2626

27-
return `neo4j-javascript/${version} ${OS} `
27+
return `neo4j-javascript/${version} (${OS})`
2828
}
2929
/* eslint-enable */

0 commit comments

Comments
 (0)