summaryrefslogtreecommitdiff
path: root/examples/ssr/src
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-10-18 13:54:56 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-10-18 13:54:56 +0000
commit1f57c0ca64eacfef65aee490cbdbbb7b36d42ab9 (patch)
treedf8952627373bad3675b4753a57be3c62fb09c04 /examples/ssr/src
parent5923dd77c17c80747f9fe746ff8270ad4c820003 (diff)
downloadastro-1f57c0ca64eacfef65aee490cbdbbb7b36d42ab9.tar.gz
astro-1f57c0ca64eacfef65aee490cbdbbb7b36d42ab9.tar.zst
astro-1f57c0ca64eacfef65aee490cbdbbb7b36d42ab9.zip
[ci] format
Diffstat (limited to 'examples/ssr/src')
-rw-r--r--examples/ssr/src/pages/login.astro11
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/ssr/src/pages/login.astro b/examples/ssr/src/pages/login.astro
index 45643665e..51ad74008 100644
--- a/examples/ssr/src/pages/login.astro
+++ b/examples/ssr/src/pages/login.astro
@@ -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>