[ci] format

This commit is contained in:
matthewp 2022-10-18 13:54:56 +00:00 committed by fredkbot
parent 5923dd77c1
commit 1f57c0ca64
2 changed files with 12 additions and 15 deletions

View file

@ -27,12 +27,9 @@ import Container from '../components/Container.astro';
}) })
.then((res) => res.json()) .then((res) => res.json())
.then((data) => { .then((data) => {
document.querySelector("#result").innerHTML = "Progressive login was successful! you will be redirected to the store in 3 seconds"; document.querySelector('#result').innerHTML =
setTimeout( 'Progressive login was successful! you will be redirected to the store in 3 seconds';
() => location.href = "/", setTimeout(() => (location.href = '/'), 3000);
3000
);
}); });
}); });
}); });
@ -52,7 +49,7 @@ import Container from '../components/Container.astro';
<input type="submit" value="Submit" /> <input type="submit" value="Submit" />
</form> </form>
<div id="result"></div> <div id="result"></div>
</Container> </Container>
</body> </body>
</html> </html>

View file

@ -378,14 +378,14 @@ async function handleRoute(
if (computedMimeType) { if (computedMimeType) {
contentType = computedMimeType; contentType = computedMimeType;
} }
const response = new Response(result.body, { const response = new Response(result.body, {
status: 200, status: 200,
headers: { headers: {
'Content-Type': `${contentType};charset=utf-8`, 'Content-Type': `${contentType};charset=utf-8`,
}, },
}); });
attachToResponse(response, result.cookies); attachToResponse(response, result.cookies);
await writeWebResponse(res, response); await writeWebResponse(res, response);
} }
} else { } else {
const result = await renderPage(options); const result = await renderPage(options);