Skip to content

Commit

Permalink
fix: remove once
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Oct 21, 2020
1 parent 47020d8 commit e502024
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ module.exports = function (moduleOptions) {
if (options.prefetch) {
this.options.head.link.push({
hid: 'gf-prefetch',
once: true,
rel: 'dns-prefetch',
href: 'https://fonts.gstatic.com/'
})
Expand All @@ -91,7 +90,6 @@ module.exports = function (moduleOptions) {
if (options.preconnect) {
this.options.head.link.push({
hid: 'gf-preconnect',
once: true,
rel: 'preconnect',
href: 'https://fonts.gstatic.com/',
crossorigin: true
Expand All @@ -103,7 +101,6 @@ module.exports = function (moduleOptions) {
if (options.preload) {
this.options.head.link.push({
hid: 'gf-preload',
once: true,
rel: 'preload',
as: 'style',
href: url
Expand All @@ -114,7 +111,6 @@ module.exports = function (moduleOptions) {
this.options.head.style = this.options.head.style || []
this.options.head.style.push({
hid: 'gf-style',
once: true,
pbody: true,
innerHTML: `@import "${url}"`
})
Expand Down

0 comments on commit e502024

Please sign in to comment.