Skip to content

Commit

Permalink
🔀 Merge #1839 to deploy/rinkeby
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 25, 2024
2 parents bd1f7ad + 49ea7dc commit 6b244da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
21 changes: 0 additions & 21 deletions src/mixins/nft.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,6 @@ export default {
nftClassCollectionMixin,
utmMixin,
],
head() {
// Only load stripe if a wallet is connected
if (!this.getAddress) return {};
return {
link: [
{
hid: 'stripe-js-link',
rel: 'preload',
href: 'https://js.stripe.com/v3',
as: 'script',
},
],
script: [
{
hid: 'stripe-js-script',
src: 'https://js.stripe.com/v3',
defer: true,
},
],
};
},
data() {
return {
NFTHistory: [],
Expand Down
14 changes: 12 additions & 2 deletions src/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ const nuxtConfig = {
link: [
{ rel: 'preconnect', href: 'https://storage.googleapis.com' },
{ rel: 'preload', href: '/vendor/fbq.js', as: 'script' },
{
hid: 'stripe-js-link',
rel: 'preload',
href: 'https://js.stripe.com/v3',
as: 'script',
},
{
rel: 'icon',
type: 'image/png',
Expand Down Expand Up @@ -128,7 +134,12 @@ const nuxtConfig = {
})),
],
script: [
{ src: '/vendor/fbq.js', type: 'text/javascript', defer: true },
{ src: '/vendor/fbq.js', type: 'text/javascript', async: true },
{
hid: 'stripe-js-script',
src: 'https://js.stripe.com/v3',
async: true,
},
{
hid: 'schema',
innerHTML: JSON.stringify([
Expand Down Expand Up @@ -259,7 +270,6 @@ const nuxtConfig = {
'www.google.com',
'button.like.co',
'https://js.stripe.com',
'https://hooks.stripe.com',
'bid.g.doubleclick.net',
'td.doubleclick.net',
'https://likecoin.github.io',
Expand Down

0 comments on commit 6b244da

Please sign in to comment.