use null instead of false in data that could be sent to api

This commit is contained in:
Alan Hamlett
2017-10-03 06:53:18 -07:00
parent 5fb7c9b416
commit f32e1e5180
10 changed files with 20 additions and 20 deletions

View File

@@ -103,7 +103,7 @@ class WakaTimeCore {
if (! contains(currentActiveTab.url, items.blacklist)) {
this.sendHeartbeat({
url: currentActiveTab.url,
project: false
project: null,
}, debug);
}
else {
@@ -165,22 +165,22 @@ class WakaTimeCore {
else {
return {
url: cleanLine.split('@@')[0],
project: false
project: null,
};
}
}
}
return {
url: false,
project: false
url: null,
project: null,
};
}
/**
* Creates payload for the heartbeat and returns it as JSON.
*
* @param entity
* @param heartbeat
* @param type
* @param debug
* @returns {*}
@@ -217,10 +217,10 @@ class WakaTimeCore {
}
/**
* Given the entity and logging type it creates a payload and
* Given the heartbeat and logging type it creates a payload and
* sends an ajax post request to the API.
*
* @param entity
* @param heartbeat
* @param debug
*/
sendHeartbeat(heartbeat, debug) {