Skip to content

Commit

Permalink
[fix] make properties overwritable (#3356)
Browse files Browse the repository at this point in the history
  • Loading branch information
GauBen authored Jan 15, 2022
1 parent f92c3e2 commit 1cc861c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/kit/src/install-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@ export function __fetch_polyfill() {
Object.defineProperties(globalThis, {
fetch: {
enumerable: true,
configurable: true,
value: fetch
},
Response: {
enumerable: true,
configurable: true,
value: Response
},
Request: {
enumerable: true,
configurable: true,
value: Request
},
Headers: {
enumerable: true,
configurable: true,
value: Headers
}
});
Expand Down

0 comments on commit 1cc861c

Please sign in to comment.