Include project in payload
This commit is contained in:
@@ -192,10 +192,10 @@ class WakaTimeCore {
|
|||||||
*/
|
*/
|
||||||
_preparePayload(entity, type, debug = false) {
|
_preparePayload(entity, type, debug = false) {
|
||||||
return JSON.stringify({
|
return JSON.stringify({
|
||||||
entity: entity,
|
entity: entity.url,
|
||||||
type: type,
|
type: type,
|
||||||
time: moment().format('X'),
|
time: moment().format('X'),
|
||||||
project: '<<LAST_PROJECT>>',
|
project: entity.project || '<<LAST_PROJECT>>',
|
||||||
is_debugging: debug,
|
is_debugging: debug,
|
||||||
plugin: 'chrome-wakatime/' + config.version
|
plugin: 'chrome-wakatime/' + config.version
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user