mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Pinned Portal to latest minor version
no refs Ghost's Portal script is loaded via unpkg which was till now pinned to load `@latest` version, which unpkg auto-resolved to the latest released Portal version. This allowed fast iterations on Portal while still in active beta development to test latest Portal releases. Going forward, Portal will be pinned to latest specific minor version that allows releasing new features that are not backward compatible without affecting older Ghost releases. Note: All previous Ghost releases with Portal `@latest` will continue to resolve to latest version and will need to update to latest Ghost 3.x to use all Portal features.
This commit is contained in:
parent
db7fff0b2a
commit
e02ef7f16d
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function getMembersHelper() {
|
||||||
const stripeDirectPublishableKey = settingsCache.get('stripe_publishable_key');
|
const stripeDirectPublishableKey = settingsCache.get('stripe_publishable_key');
|
||||||
const stripeConnectAccountId = settingsCache.get('stripe_connect_account_id');
|
const stripeConnectAccountId = settingsCache.get('stripe_connect_account_id');
|
||||||
|
|
||||||
let membersHelper = `<script defer src="https://unpkg.com/@tryghost/portal@latest/umd/portal.min.js" data-ghost="${urlUtils.getSiteUrl()}"></script>`;
|
let membersHelper = `<script defer src="https://unpkg.com/@tryghost/portal@~0.14.0/umd/portal.min.js" data-ghost="${urlUtils.getSiteUrl()}"></script>`;
|
||||||
membersHelper += (`<style> ${templateStyles}</style>`);
|
membersHelper += (`<style> ${templateStyles}</style>`);
|
||||||
if ((!!stripeDirectSecretKey && !!stripeDirectPublishableKey) || !!stripeConnectAccountId) {
|
if ((!!stripeDirectSecretKey && !!stripeDirectPublishableKey) || !!stripeConnectAccountId) {
|
||||||
membersHelper += '<script async src="https://js.stripe.com/v3/"></script>';
|
membersHelper += '<script async src="https://js.stripe.com/v3/"></script>';
|
||||||
|
|
Loading…
Reference in a new issue