Skip to content

Commit

Permalink
fix ff stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
weizman committed Jul 11, 2023
1 parent e19c70e commit 60dfa89
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion snow.js
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,9 @@ function makeWindowUtilSetter(prop, val) {
const desc = Object.create(null);
desc.value = val;
return function (win) {
Object.defineProperty(win, prop, desc);
if (!Object.getOwnPropertyDescriptor(win, prop)) {
Object.defineProperty(win, prop, desc);
}
};
}
function getPrototype(node) {
Expand Down
Loading

0 comments on commit 60dfa89

Please sign in to comment.