Skip to content

Commit 97980ce

Browse files
committed
avoid import attributes, for now
1 parent af9cc55 commit 97980ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/system-guide.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@
125125
Inputs.table(AMZN)
126126
</script>
127127
<script id="78" type="text/markdown">
128-
To load live data, you can use `fetch`, `WebSocket`, and other standard web APIs. For JSON data, you can also use an <code class="language-js">import</code> with `type: "json"`.
128+
To load live data, you can use `fetch`, `WebSocket`, and other standard web APIs.
129129
</script>
130130
<script id="82" type="module" pinned="">
131-
import world from "npm:world-atlas/land-110m.json" with {type: "json"};
132-
133-
display(world);
131+
const world = fetch("https://cdn.jsdelivr.net/npm/world-atlas/land-110m.json")
132+
.then((response) => response.ok ? response.json() : Promise.reject(response.status))
133+
.then(display);
134134
</script>
135135
<script id="69" type="text/markdown">
136136
The notebook standard library includes a handful of additional built-ins:

0 commit comments

Comments
 (0)