MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 17: Line 17:


if (headers) {
if (headers) {
     for (var header of Array.from(headers)) {
     headers.forEach(function(header) {
         const paragraph = header.querySelector('p');
         const paragraph = header.querySelector('p');


Line 26: Line 26:
         console.log("Added styling to Cost section on infobox");
         console.log("Added styling to Cost section on infobox");
         }
         }
     }
     })
} else {
} else {
console.log("Did not find an infobox");
console.log("Did not find an infobox");
}
}