Skip to content

Commit 80c1064

Browse files
CDN test
1 parent 69b0844 commit 80c1064

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

test/test-cdn.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<title>CDN test</title>
4+
<meta charset="utf-8">
5+
<title>CDN test</title>
66
</head>
77
<body>
8-
<pre id="version"></pre>
9-
<pre id="health"></pre>
8+
<pre id="version"></pre>
9+
<pre id="health"></pre>
10+
<script src="https://unpkg.com/simplicite@latest/dist/simplicite.min.js"></script>
11+
<script>
12+
const app = simplicite.session({ url: 'https://demo.dev2.simplicite.io', debug: true });
13+
document.getElementById('version').innerHTML = `Version: ${app.getModuleVersion()}`;
14+
app.getHealth().then(health => document.getElementById('health').innerHTML = JSON.stringify(health, null, 2));
15+
</script>
1016
</body>
11-
<script src="https://unpkg.com/simplicite@3.1.3/dist/simplicite.min.js"></script>
12-
<script>
13-
const app = simplicite.session({ url: 'https://demo.dev2.simplicite.io', debug: true });
14-
app.debug('params', app.parameters);
15-
document.getElementById('version').innerHTML = `Version: ${simplicite.constants.MODULE_VERSION}`;
16-
app.getHealth().then(health => document.getElementById('health').innerHTML = JSON.stringify(health, null, 2));
17-
</script>
1817
</html>

0 commit comments

Comments
 (0)