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) {

View File

@@ -1,6 +1,6 @@
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

View File

@@ -59,7 +59,7 @@
.border-right-radius(0);
}
}
// Need .dropdown-toggle since :last-child doesn't apply, given that a .dropdown-menu is used immediately after it
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
.border-left-radius(0);

View File

@@ -181,7 +181,7 @@ input[type="search"] {
// set a pixel line-height that matches the given height of the input, but only
// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
//
// Note that as of 9.3, iOS doesn't support `week`.
// Note that as of 8.3, iOS doesn't support `datetime` or `week`.
@media screen and (-webkit-min-device-pixel-ratio: 0) {
input[type="date"],

View File

@@ -1,9 +1,9 @@
// WebKit-style focus
.tab-focus() {
// WebKit-specific. Other browsers will keep their default outline style.
// (Initially tried to also force default via `outline: initial`,
// but that seems to erroneously remove the outline in Firefox altogether.)
// Default
outline: thin dotted;
// WebKit
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}

View File

@@ -214,7 +214,7 @@
}
// Collapsible panels (aka, accordion)
// Collapsable panels (aka, accordion)
//
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
// the help of our collapse JavaScript plugin.

View File

@@ -120,7 +120,7 @@ hr {
// Only display content to screen readers
//
// See: http://a11yproject.com/posts/how-to-hide-content
// See: http://a11yproject.com/posts/how-to-hide-content/
.sr-only {
position: absolute;

View File

@@ -1,6 +1,6 @@
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

View File

@@ -111,7 +111,7 @@
//** Global background color for active items (e.g., navs or dropdowns).
@component-active-bg: @brand-primary;
//** Width of the `border` for generating carets that indicate dropdowns.
//** Width of the `border` for generating carets that indicator dropdowns.
@caret-width-base: 4px;
//** Carets increase slightly in size for larger components.
@caret-width-large: 5px;