mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Replaced existing members script with new (behind dev exp)
refs https://github.com/TryGhost/members.js/issues/36 - Replaces existing members.js with new script which covers existing functionality as well as adds new ones - This is behind developer experiments flag atm
This commit is contained in:
parent
3471a21bc3
commit
65b9072fe2
@ -44,6 +44,9 @@ function getMembersHelper() {
|
||||
const stripePublicToken = stripePaymentProcessor.config.public_token;
|
||||
|
||||
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"></script>`;
|
||||
}
|
||||
if (!!stripeSecretToken && stripeSecretToken !== '' && !!stripePublicToken && stripePublicToken !== '') {
|
||||
membersHelper += '<script src="https://js.stripe.com/v3/"></script>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user