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 committed Jan 15, 2022
1 parent f92c3e2 commit f7abf1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-schools-kiss.md
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Allow \_\_fetch_polyfill() to run several times
4 changes: 4 additions & 0 deletions packages/kit/src/install-fetch.js
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 f7abf1f

Please sign in to comment.