Skip to content

Commit c3c7e13

Browse files
Update demo-minimal-js to load SDK from CDN (#264)
1 parent 37e75ec commit c3c7e13

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

demos/demo-minimal-js/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
2929
crossorigin="anonymous"
3030
></script>
31+
<script src="https://cdn.jsdelivr.net/npm/@hubspot/calling-extensions-sdk@latest/dist/main.js"></script>
3132
<script defer src="demo-minimal-js.bundle.js"></script>
3233
<title>Demo Widget JS</title>
3334
<meta charset="UTF-8" />

demos/demo-minimal-js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-undef */
2-
import CallingExtensions, { Constants } from "@hubspot/calling-extensions-sdk";
3-
// import CallingExtensions, { Constants } from "../../index";
42
import { v4 as uuidv4 } from "uuid";
3+
const CallingExtensions = window.default;
4+
const { Constants } = window;
55
const { messageType, callEndStatus } = Constants;
66

77
function getQueryParam(param) {

demos/demo-minimal-js/package-lock.json

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/demo-minimal-js/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"webpack-dev-server": "^4.11.1"
2222
},
2323
"dependencies": {
24-
"@hubspot/calling-extensions-sdk": "^0.9.3",
2524
"uuid": "^10.0.0"
2625
}
2726
}

0 commit comments

Comments
 (0)