0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed loading default template style for cta behind flag

refs e3a0bb535f

- The default style template was incorrectly loaded from the stripe config check instead of dev config flag
This commit is contained in:
Rish 2020-09-10 21:27:24 +05:30
parent 453faff41e
commit 7b5401b268

View file

@ -45,10 +45,10 @@ function getMembersHelper() {
let membersHelper = `<script defer src="${getAssetUrl('public/members.js', true)}"></script>`;
if (config.get('enableDeveloperExperiments')) {
membersHelper = `<script defer src="https://unpkg.com/@tryghost/members-js@latest/umd/members.min.js" data-ghost="${urlUtils.getSiteUrl()}"></script>`;
membersHelper += (`<style type='text/css'> ${templateStyles}</style>`);
}
if ((!!stripeDirectSecretKey && !!stripeDirectPublishableKey) || !!stripeConnectAccountId) {
membersHelper += '<script async src="https://js.stripe.com/v3/"></script>';
membersHelper += (`<style type='text/css'> ${templateStyles}</style>`);
}
return membersHelper;
}