Skip to content

Commit

Permalink
Update demo-minimal-js to load SDK from CDN (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemang-thakkar authored Jan 17, 2025
1 parent 37e75ec commit c3c7e13
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
1 change: 1 addition & 0 deletions demos/demo-minimal-js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/@hubspot/calling-extensions-sdk@latest/dist/main.js"></script>
<script defer src="demo-minimal-js.bundle.js"></script>
<title>Demo Widget JS</title>
<meta charset="UTF-8" />
Expand Down
4 changes: 2 additions & 2 deletions demos/demo-minimal-js/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-undef */
import CallingExtensions, { Constants } from "@hubspot/calling-extensions-sdk";
// import CallingExtensions, { Constants } from "../../index";
import { v4 as uuidv4 } from "uuid";
const CallingExtensions = window.default;
const { Constants } = window;
const { messageType, callEndStatus } = Constants;

function getQueryParam(param) {
Expand Down
10 changes: 0 additions & 10 deletions demos/demo-minimal-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion demos/demo-minimal-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"webpack-dev-server": "^4.11.1"
},
"dependencies": {
"@hubspot/calling-extensions-sdk": "^0.9.3",
"uuid": "^10.0.0"
}
}

0 comments on commit c3c7e13

Please sign in to comment.