@@ -147,7 +147,7 @@ import Urbit from '@urbit/http-api';
149Note that the examples in this guide are simple HTML documents with vanilla
149Note that the examples in this guide are simple HTML documents with vanilla
150−Javascript in `<script>` tags, so they use [unpkg.com](https://unpkg.com) to
150+Javascript in `<script>` tags, so they use [unpkg.com](https://unpkg.com) to
151import `@urbit/http-api`. This is not typical, and is just done here for
151import `@urbit/http-api`. This is not typical, and is just done here for
152purposes of simplicity.
152purposes of simplicity.
@@ -437,7 +437,7 @@ This example will, upon clicking the "Subscribe" button, subscribe to the
437update it receives. You can test it by doing something like posting a message in
437update it receives. You can test it by doing something like posting a message in
438a chat. You can also unsubscribe by clicking the "Unsubscribe" button.
438a chat. You can also unsubscribe by clicking the "Unsubscribe" button.
443 <script src="https://unpkg.com/@urbit/http-api"></script>
443 <script src="https://unpkg.com/@urbit/http-api"></script>
@@ -445,7 +445,7 @@ a chat. You can also unsubscribe by clicking the "Unsubscribe" button.
447 <button id="toggle" type="button" onClick="doSub()" >Subscribe</button>
447 <button id="toggle" type="button" onClick="doSub()" >Subscribe</button>
448− <pre id="event"></pre>
448+ <pre id="event">```
451 const api = new UrbitHttpApi.Urbit("");
451 const api = new UrbitHttpApi.Urbit("");
@@ -478,7 +478,7 @@ a chat. You can also unsubscribe by clicking the "Unsubscribe" button.
479 </script>
479 </script>
483### Subscribe Once
483### Subscribe Once
@@ -514,7 +514,7 @@ printing every `graph-store` update it receives, it will instead just print the
514first one it receives and close the subscription. Additionally, it sets a five
514first one it receives and close the subscription. Additionally, it sets a five
515second timeout, and prints an error message if it times out.
515second timeout, and prints an error message if it times out.
520 <script src="https://unpkg.com/@urbit/http-api"></script>
520 <script src="https://unpkg.com/@urbit/http-api"></script>
@@ -522,7 +522,7 @@ second timeout, and prints an error message if it times out.
524 <button type="button" onClick="doSub()" >Subscribe Once</button>
524 <button type="button" onClick="doSub()" >Subscribe Once</button>
525− <pre id="event"></pre>
525+ <pre id="event">```
528 const api = new UrbitHttpApi.Urbit("");
528 const api = new UrbitHttpApi.Urbit("");
@@ -541,7 +541,7 @@ second timeout, and prints an error message if it times out.
542 </script>
542 </script>
546### Scries
546### Scries
@@ -564,7 +564,7 @@ Upon pressing the "Scry Graphs" button, this example will scry the `graph-store`
564agent's `/keys` endpoint for the list of graphs, and print the resulting JSON
564agent's `/keys` endpoint for the list of graphs, and print the resulting JSON
570 <script src="https://unpkg.com/@urbit/http-api"></script>
570 <script src="https://unpkg.com/@urbit/http-api"></script>
@@ -572,7 +572,7 @@ data.
574 <button id="scry" type="button" onClick="doScry()" >Scry Graphs</button>
574 <button id="scry" type="button" onClick="doScry()" >Scry Graphs</button>
575− <pre id="result"></pre>
575+ <pre id="result">```
578 const api = new UrbitHttpApi.Urbit("");
578 const api = new UrbitHttpApi.Urbit("");
@@ -584,7 +584,7 @@ data.
585 </script>
585 </script>
589### Thread
589### Thread
@@ -608,7 +608,7 @@ mark conversion failed, the promise will fail.
608This example takes a hoon expression (such as `(add 1 1)`), evalutes it with the
608This example takes a hoon expression (such as `(add 1 1)`), evalutes it with the
609`graph-eval` thread in the `landscape` desk, and prints the result.
609`graph-eval` thread in the `landscape` desk, and prints the result.
614 <script src="https://unpkg.com/@urbit/http-api"></script>
614 <script src="https://unpkg.com/@urbit/http-api"></script>
@@ -617,8 +617,8 @@ This example takes a hoon expression (such as `(add 1 1)`), evalutes it with the
618 <input id="hoon" type="text" placeholder="Hoon to evaluate" />
618 <input id="hoon" type="text" placeholder="Hoon to evaluate" />
619 <button id="submit" type="button" onClick="runThread()" >Submit</button>
619 <button id="submit" type="button" onClick="runThread()" >Submit</button>
620− <pre id="expr"></pre>
620+ <pre id="expr">```
621− <pre id="result"></pre>
621+ <pre id="result">```
624 document.getElementById("hoon")
624 document.getElementById("hoon")
@@ -646,7 +646,7 @@ This example takes a hoon expression (such as `(add 1 1)`), evalutes it with the
647 </script>
647 </script>
651### Delete Channel
651### Delete Channel