Skip to content

Commit

Permalink
Remove object construction - use entries of cssOMTypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
flackr committed Feb 2, 2024
1 parent eb78b57 commit ae5ae1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy-cssom.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export function installCSSOM() {
});
}

for (let [type, value] of Object.entries({cssOMTypes})) {
for (let [type, value] of Object.entries(cssOMTypes)) {
if (type in window)
continue;
if (!Reflect.defineProperty(window, type, { value }))
Expand Down

0 comments on commit ae5ae1c

Please sign in to comment.