Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
fix(meta): avoid meta duplication (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw authored Feb 5, 2023
1 parent 0376717 commit 772f5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parts/meta/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ type NuxtAppHead = Required<MetaObject>
const isUrl = (path: string) => /^https?:/.test(path)

function addMeta (head: NuxtAppHead, name: string, content: string | number | boolean) {
head.meta.push({ hid: name, name, content })
head.meta.push({ name, content })
}

function addMetaProperty (head: NuxtAppHead, property: string, content: string | number | boolean) {
head.meta.push({ hid: property, property, content })
head.meta.push({ property, content })
}

export default (pwa: PWAContext) => {
Expand Down

0 comments on commit 772f5b8

Please sign in to comment.