1
0
mirror of https://github.com/elk-zone/elk synced 2025-01-19 22:02:50 +09:00

fix(pwa): use 303 redirect in web share target api (#1448)

This commit is contained in:
Joaquín Sánchez 2023-01-25 16:32:52 +01:00 committed by GitHub
parent f96cdae1ba
commit eda218de0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)