FIX: Prettier

This commit is contained in:
Robin Ward 2020-06-25 15:50:21 -04:00
parent 05967a8d52
commit 3d0ee3f28a
1 changed files with 4 additions and 13 deletions

View File

@ -8,12 +8,9 @@ const data = {
"post-bottom": {}
};
let mobileView = Discourse.Site.currentProp('mobileView');
let mobileView = Discourse.Site.currentProp("mobileView");
if (
!mobileView &&
Discourse.SiteSettings.amazon_topic_list_top_src_code
) {
if (!mobileView && Discourse.SiteSettings.amazon_topic_list_top_src_code) {
data["topic-list-top"]["user_input"] =
Discourse.SiteSettings.amazon_topic_list_top_src_code;
data["topic-list-top"]["amazon_width"] = parseInt(
@ -106,10 +103,7 @@ if (
);
}
if (
!mobileView &&
Discourse.SiteSettings.amazon_post_bottom_src_code
) {
if (!mobileView && Discourse.SiteSettings.amazon_post_bottom_src_code) {
data["post-bottom"]["user_input"] =
Discourse.SiteSettings.amazon_post_bottom_src_code;
data["post-bottom"]["amazon_width"] = parseInt(
@ -122,10 +116,7 @@ if (
);
}
if (
mobileView &&
Discourse.SiteSettings.amazon_mobile_post_bottom_src_code
) {
if (mobileView && Discourse.SiteSettings.amazon_mobile_post_bottom_src_code) {
data["post-bottom"]["user_input_mobile"] =
Discourse.SiteSettings.amazon_mobile_post_bottom_src_code;
data["post-bottom"]["mobile_amazon_width"] = parseInt(