mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Removed unneeded "type='text/css'" in members styles (#12329)
no issue - Removed unneeded "type='text/css'" attribute from style tag when loading member related styles. - Having this attribute makes W3C validation fail. - Reference on style tag's "type" attribute - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#attr-type
This commit is contained in:
parent
6268d9c324
commit
8db835a057
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ function getMembersHelper() {
|
|||
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>`;
|
||||
membersHelper += (`<style type='text/css'> ${templateStyles}</style>`);
|
||||
membersHelper += (`<style> ${templateStyles}</style>`);
|
||||
if ((!!stripeDirectSecretKey && !!stripeDirectPublishableKey) || !!stripeConnectAccountId) {
|
||||
membersHelper += '<script async src="https://js.stripe.com/v3/"></script>';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue