diff options
Diffstat (limited to 'examples/non-html-pages/src/pages/index.astro')
-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> |