diff options
author | 2022-07-08 22:08:32 +0200 | |
---|---|---|
committer | 2022-07-08 22:08:32 +0200 | |
commit | 59e8c71786fd1c154904b3fefa7d26d88f4d92d2 (patch) | |
tree | 3a352e838b25a402c608913aeca21f471d75a826 /examples/non-html-pages/src | |
parent | 1f9e4857ff2b2cb7db89d619618cdf546cd3b3dc (diff) | |
download | astro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.tar.gz astro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.tar.zst astro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.zip |
Format astro files in examples (#3862)
Diffstat (limited to 'examples/non-html-pages/src')
-rw-r--r-- | examples/non-html-pages/src/pages/index.astro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/non-html-pages/src/pages/index.astro b/examples/non-html-pages/src/pages/index.astro index 9abb797e4..b6fc1decf 100644 --- a/examples/non-html-pages/src/pages/index.astro +++ b/examples/non-html-pages/src/pages/index.astro @@ -1,4 +1,3 @@ - <html lang="en"> <head> <meta charset="utf-8" /> @@ -12,7 +11,9 @@ // can fetch them directly in the browser. const response = await fetch(`/about.json`); const data = await response.json(); - document.getElementById('result').innerHTML = `Load complete!<br/>Built with: <a href="${data.url}">${data.name}!</a>`; + document.getElementById( + "result" + ).innerHTML = `Load complete!<br/>Built with: <a href="${data.url}">${data.name}!</a>`; </script> </body> </html> |