Skip to content

Commit

Permalink
Merge pull request #28 from borisdayma/patch-1
Browse files Browse the repository at this point in the history
fix: update crossorigin attribute
  • Loading branch information
ricardogobbosouza committed Nov 7, 2020
2 parents e737a34 + 037f206 commit 394ad0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module.exports = function (moduleOptions) {
hid: 'gf-preconnect',
rel: 'preconnect',
href: 'https://fonts.gstatic.com/',
crossorigin: true
crossorigin: ''
})
}

Expand Down
2 changes: 1 addition & 1 deletion test/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('basic', () => {

test('has preconnect link', async () => {
const html = await get('/')
expect(html).toContain('<link data-n-head="ssr" data-hid="gf-preconnect" rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="true">')
expect(html).toContain('<link data-n-head="ssr" data-hid="gf-preconnect" rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="">')
})

test('has preload link', async () => {
Expand Down

0 comments on commit 394ad0a

Please sign in to comment.