[ci] format
This commit is contained in:
parent
5923dd77c1
commit
1f57c0ca64
2 changed files with 12 additions and 15 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue