Skip to content

Commit

Permalink
Update CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
abstractalgo committed Mar 14, 2024
1 parent ff1edeb commit 3fcc287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions typescript-examples/html-and-js-example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
-->
<script type="module">
// we import a bundled version of Map SDK from unpkg CDN
import {createMap} from 'https://unpkg.com/@unfolded/map-sdk@latest/dist/index.js';
// we import a bundled version of Map SDK from a CDN
import {createMap} from 'https://cdn.jsdelivr.net/npm/@unfolded/map-sdk@latest/dist/index.js';

// we now can call functions as we would anywhere else
const map = await createMap({
Expand Down
2 changes: 1 addition & 1 deletion typescript-examples/published-map-example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="map-container"></div>

<script type="module">
import {createMap} from 'https://unpkg.com/@unfolded/map-sdk@latest/dist/index.js';
import {createMap} from 'https://cdn.jsdelivr.net/npm/@unfolded/map-sdk@latest/dist/index.js';

const map = await createMap({
container: document.getElementById('map-container'),
Expand Down

0 comments on commit 3fcc287

Please sign in to comment.