mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-02-17 00:45:15 +00:00
lint errors
This commit is contained in:
parent
333f6cef81
commit
1929ac405c
@ -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];
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user