linter fixes

This commit is contained in:
Rodrigo Ramírez Norambuena 2019-07-26 00:38:52 -04:00
parent 32521aba6b
commit 82ee051c1a
4 changed files with 15 additions and 15 deletions

View File

@ -203,7 +203,7 @@ var MM = (function() {
*/ */
var updateModuleContent = function(module, newHeader, newContent) { var updateModuleContent = function(module, newHeader, newContent) {
var moduleWrapper = document.getElementById(module.identifier); var moduleWrapper = document.getElementById(module.identifier);
if (moduleWrapper === null) return; if (moduleWrapper === null) {return;}
var headerWrapper = moduleWrapper.getElementsByClassName("module-header"); var headerWrapper = moduleWrapper.getElementsByClassName("module-header");
var contentWrapper = moduleWrapper.getElementsByClassName("module-content"); var contentWrapper = moduleWrapper.getElementsByClassName("module-content");

View File

@ -11,7 +11,7 @@ Module.register("updatenotification", {
start: function () { start: function () {
var self = this; var self = this;
Log.log("Start updatenotification"); Log.log("Start updatenotification");
setInterval( () => { self.moduleList = {};self.updateDom(2) } , self.config.refreshInterval) setInterval( () => { self.moduleList = {};self.updateDom(2); } , self.config.refreshInterval);
}, },
notificationReceived: function (notification, payload, sender) { notificationReceived: function (notification, payload, sender) {
@ -43,7 +43,7 @@ Module.register("updatenotification", {
// if the module WAS in the list, but shouldn't be // if the module WAS in the list, but shouldn't be
if(this.moduleList[payload.module] != undefined){ if(this.moduleList[payload.module] != undefined){
// remove it // remove it
delete this.moduleList[payload.module] delete this.moduleList[payload.module];
self.updateDom(2); self.updateDom(2);
} }
} }
@ -66,7 +66,7 @@ Module.register("updatenotification", {
if(this.suspended==false){ if(this.suspended==false){
// process the hash of module info found // process the hash of module info found
for(key of Object.keys(this.moduleList)){ for(key of Object.keys(this.moduleList)){
let m= this.moduleList[key] let m= this.moduleList[key];
var message = document.createElement("div"); var message = document.createElement("div");
message.className = "small bright"; message.className = "small bright";