Skip to content

Commit

Permalink
fix(pwa): use 303 redirect in web share target api (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jan 25, 2023
1 parent f96cdae commit eda218d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service-worker/share-target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const onShareTarget = (event: FetchEvent) => {
}

async function handleSharedTarget(event: FetchEvent) {
event.respondWith(Response.redirect('/home?share-target=true'))
event.respondWith(Response.redirect('/home?share-target=true', 303))
await waitForClientToGetReady(event.resultingClientId)

const [client, formData] = await getClientAndFormData(event)
Expand Down

0 comments on commit eda218d

Please sign in to comment.