chore: update user agent send to heartbeat api
This commit is contained in:
@@ -228,7 +228,7 @@ class WakaTimeCore {
|
|||||||
entity: heartbeat.url,
|
entity: heartbeat.url,
|
||||||
time: moment().format('X'),
|
time: moment().format('X'),
|
||||||
type: type,
|
type: type,
|
||||||
user_agent: 'browser-wakatime/' + config.version,
|
user_agent: `${navigator.userAgent} browser-wakatime/${config.version}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (heartbeat.project) {
|
if (heartbeat.project) {
|
||||||
|
|||||||
Reference in New Issue
Block a user