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:
parent
453faff41e
commit
7b5401b268
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue