lint errors

This commit is contained in:
Neil Lalonde 2019-07-08 15:18:34 -04:00
parent 333f6cef81
commit 1929ac405c
2 changed files with 2 additions and 4 deletions

View File

@ -10,8 +10,6 @@ let _loaded = false,
renderCounts = {},
publisher_id = Discourse.SiteSettings.adsense_publisher_code;
const mobileView = Discourse.Site.currentProp("mobileView");
function parseAdWidth(value) {
if (value === "responsive") {
return "auto";
@ -113,7 +111,7 @@ export default AdComponent.extend({
const sizes = (this.siteSettings[config.sizes] || "").split("|");
if (sizes.length == 1) {
if (sizes.length === 1) {
size = sizes[0];
} else {
size = sizes[renderCounts[placement] % sizes.length];

View File

@ -119,7 +119,7 @@ function getWidthAndHeight(placement, settings, isMobile) {
const sizes = (settings[config.sizes] || "").split("|");
if (sizes.length == 1) {
if (sizes.length === 1) {
size = sizes[0];
} else {
size = sizes[renderCounts[placement] % sizes.length];