Skip to content

Commit

Permalink
refactor: further optimize to lower bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
avioli committed Dec 3, 2023
1 parent 4460ccf commit cbceebd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/current.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ const currentProxy = {
if (result[key]) return
result[key] = content
})
} else {
const exact = document.head.querySelector<HTMLMetaElement>(`meta[name=${metaName}]`)
if (exact) return exact.content
}

const exact = document.head.querySelector<HTMLMetaElement>(`meta[name=${metaName}]`)
if (exact) return exact.content
return result
},
}
Expand Down

0 comments on commit cbceebd

Please sign in to comment.