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

View file

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