lets stick to the same variable syntax in logs

This commit is contained in:
skuethe 2020-11-05 23:06:23 +01:00 committed by Sebastian Küthe
parent 79d4327a5a
commit b70550447a

View file

@ -283,9 +283,9 @@ Module.register('MMM-pages', {
pauseRotation: function (pause) { pauseRotation: function (pause) {
var stateBaseString = (pause) ? "paus" : "resum"; var stateBaseString = (pause) ? "paus" : "resum";
if (pause === this.rotationPaused) { if (pause === this.rotationPaused) {
Log.warn('[Pages]: Was asked to ' + stateBaseString + 'e but rotation is already ' + stateBaseString + 'ed!'); Log.warn(`[Pages]: Was asked to ${stateBaseString}e but rotation is already ${stateBaseString}ed!`);
} else { } else {
Log.log('[Pages]: ' + stateBaseString + 'ing rotation'); Log.log(`[Pages]: ${stateBaseString}ing rotation`);
if (pause) { if (pause) {
clearInterval(this.timer); clearInterval(this.timer);
clearInterval(this.delayTimer); clearInterval(this.delayTimer);