Skip to content

Commit

Permalink
fix(winterjs): 0.1.7 compatibility (#1876)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Nov 2, 2023
1 parent c62f6d6 commit 44699df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/runtime/entries/winterjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ async function _handleEvent(event: FetchEvent) {
}
}

globalThis._handleEvent = _handleEvent;

addEventListener("fetch", async (event) => {
return await globalThis._handleEvent(event as FetchEvent);
addEventListener("fetch", async (event: FetchEvent) => {
event.respondWith(await _handleEvent(event));
});

// ------------------------------
Expand Down

0 comments on commit 44699df

Please sign in to comment.