mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
11 lines
373 B
HTML
11 lines
373 B
HTML
<script>
|
|
(async function() {
|
|
const response = await fetch(new Request('https://httpbin.io/json'));
|
|
if (response.ok) {
|
|
document.firstElementChild.appendChild(document.createTextNode(response.ok+"\n"));
|
|
const body = await response.text();
|
|
document.firstElementChild.appendChild(document.createTextNode("body:"+body+"\n"));
|
|
}
|
|
}());
|
|
</script>
|