Skip to content

Commit

Permalink
chore(tutorials) Updating Browser Bundle tutorial to use libraryVersi…
Browse files Browse the repository at this point in the history
…on in CDN loading
  • Loading branch information
andyb1979 committed Mar 10, 2022
1 parent 5137f3c commit 70963ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Expand Up @@ -3,7 +3,7 @@
<meta charset="utf-8" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>SciChart.js Browser Bundle Tutorial 1</title>
<script src="https://cdn.jsdelivr.net/npm/scichart@2.1.0-beta.40/_wasm/scichart.browser.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/scichart@2.1.2290/_wasm/scichart.browser.js" crossorigin="anonymous"></script>
<script async type="text/javascript" src="index.js"></script>
<style>
body { font-family: 'Arial'}
Expand Down
Expand Up @@ -6,8 +6,8 @@ async function initSciChart() {

// Load SciChart.js from CDN. Ensure version numbers match the script in index.html
SciChart.SciChartSurface.configure({
dataUrl: "https://cdn.jsdelivr.net/npm/scichart@2.1.0-beta.40/_wasm/scichart2d.data",
wasmUrl: "https://cdn.jsdelivr.net/npm/scichart@2.1.0-beta.40/_wasm/scichart2d.wasm"
dataUrl: `https://cdn.jsdelivr.net/npm/scichart@${SciChart.libraryVersion}/_wasm/scichart2d.data`,
wasmUrl: `https://cdn.jsdelivr.net/npm/scichart@${SciChart.libraryVersion}/_wasm/scichart2d.wasm`
});

// Create the SciChartSurface in the div 'scichart-root'
Expand Down
Expand Up @@ -3,7 +3,7 @@
<meta charset="utf-8" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>SciChart.js Browser Bundle Tutorial 2</title>
<script src="https://cdn.jsdelivr.net/npm/scichart@2.1.0-beta.40/_wasm/scichart.browser.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/scichart@2.1.2290/_wasm/scichart.browser.js" crossorigin="anonymous"></script>
<script async type="text/javascript" src="index.js"></script>
<style>
body { font-family: 'Arial'}
Expand Down
Expand Up @@ -6,8 +6,8 @@ async function initSciChart() {

// Load SciChart.js from CDN. Ensure version numbers match the script in index.html
SciChart.SciChartSurface.configure({
dataUrl: "https://cdn.jsdelivr.net/npm/scichart@2.1.0-beta.40/_wasm/scichart2d.data",
wasmUrl: "https://cdn.jsdelivr.net/npm/scichart@2.1.0-beta.40/_wasm/scichart2d.wasm"
dataUrl: `https://cdn.jsdelivr.net/npm/scichart@${SciChart.libraryVersion}/_wasm/scichart2d.data`,
wasmUrl: `https://cdn.jsdelivr.net/npm/scichart@${SciChart.libraryVersion}/_wasm/scichart2d.wasm`
});

// Create the SciChartSurface in the div 'scichart-root'
Expand Down

0 comments on commit 70963ee

Please sign in to comment.