Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
chientrm committed Aug 21, 2023
1 parent cf9c20d commit cb07a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ const defaultHostname = 'http://127.0.0.1:8787',
}),
waitUntil = (
promise: Promise<any>,
context: { waitUntil: (promise: Promise<any>) => void }
context?: { waitUntil: (promise: Promise<any>) => void }
) => {
if (context.waitUntil) {
if (context?.waitUntil) {
return context.waitUntil(promise);
} else {
return promise;
Expand Down

0 comments on commit cb07a49

Please sign in to comment.