13 lines
345 B
JavaScript
13 lines
345 B
JavaScript
export default {
|
|
shouldRender(args, component) {
|
|
const { siteSettings } = component;
|
|
const mobileView = component.site.mobileView;
|
|
const bannerLocation =
|
|
siteSettings.discourse_subscriptions_campaign_banner_location;
|
|
|
|
return (
|
|
bannerLocation === "Top" || (bannerLocation === "Sidebar" && mobileView)
|
|
);
|
|
},
|
|
};
|