Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
nischi committed Jun 21, 2019
1 parent a14e149 commit ccd0723
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mvgmunich.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Module.register("mvgmunich", {
}

htmlText += "<tr class='normal'>";
// check if user want's icons
// check if user want's icons
htmlText += this.showIcons(apiResultItem.product, this.config.showIcons);
// add transport number
htmlText += "<td>" + apiResultItem.label + "</td>";
Expand All @@ -119,7 +119,7 @@ Module.register("mvgmunich", {

showIcons(product, showIcons) {
// if (Object.is(showIcons, true)) {
if(showIcons)
if(showIcons)
return "<td class='" + product.toLocaleLowerCase() + "'></td>";
return "";
},
Expand Down Expand Up @@ -149,7 +149,7 @@ Module.register("mvgmunich", {
htmlText += "<td class='timing'>";
var departureTime = new Date(departureTime)

// check what kind of time user wants (absolute / relative)
// check what kind of time user wants (absolute / relative)
if(config.trainDepartureTimeFormat == "absolute") {
htmlText += this.getAbsoluteTime(departureTime);
} else if (config.trainDepartureTimeFormat == "relative") {
Expand All @@ -172,7 +172,7 @@ Module.register("mvgmunich", {
getRelativeTime: function(time) {
var timingForStartWalking = Math.floor((time.getTime() - new Date().getTime()) / 1000 / 60);
return (timingForStartWalking <=0
? this.translate("JETZT")
? this.translate("JETZT")
: this.translate("IN") + " " + timingForStartWalking + " " + this.translate("MIN"));
},

Expand All @@ -198,7 +198,6 @@ Module.register("mvgmunich", {
this.updateDom();
}
if (notification === "STATION") {
console.log("Payload: " + payload);
this.config.haltestelleName = payload.name;
this.config.haltestelleId = payload.id
this.sendSocketNotification("GETDATA", this.config);
Expand Down

0 comments on commit ccd0723

Please sign in to comment.