Include project in payload

This commit is contained in:
Kuba Paczyński
2017-10-02 21:46:48 +02:00
parent c5d3830001
commit 26d9ea1b29

View File

@@ -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
}); });