Merge pull request #147 from drewvolz/patch-1

Update to compliments.js
This commit is contained in:
Michael Teeuw 2016-04-08 00:15:20 +02:00
commit f621a1b46f

View File

@ -22,9 +22,9 @@ compliments.updateCompliment = function () {
var hour = moment().hour();
// In the followign if statement we use .slice() on the
// In the following if statement we use .slice() on the
// compliments array to make a copy by value.
// This way the original array of compliments stays in tact.
// This way the original array of compliments stays intact.
if (hour >= 3 && hour < 12) {
// Morning compliments
@ -67,4 +67,4 @@ compliments.init = function () {
this.updateCompliment();
}.bind(this), this.updateInterval)
}
}