Skip to content

Commit 6ae5888

Browse files
authoredMar 20, 2025··
fix: use a backwards-compatible alternative to Object.hasOwn (#526)
1 parent 058287f commit 6ae5888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/unhead/src/client/renderDOMHead.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export async function renderDOMHead<T extends Unhead<any>>(head: T, options: Ren
121121
})
122122
}
123123
for (const k in tag.props) {
124-
if (!Object.hasOwn(tag.props, k))
124+
if (!Object.prototype.hasOwnProperty.call(tag.props, k))
125125
continue
126126
const value = tag.props[k]
127127
if (k.startsWith('on') && typeof value === 'function') {

0 commit comments

Comments
 (0)
Please sign in to comment.