Skip to content

Commit

Permalink
Bump npm version for demo minimal js (#235)
Browse files Browse the repository at this point in the history
* Bump npm version for demo minimal js

* Redirect to a new url domain
  • Loading branch information
esme authored Oct 8, 2024
1 parent 99f3f6d commit 746f18d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
9 changes: 4 additions & 5 deletions demos/demo-minimal-js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,10 @@ const cti = new CallingExtensions({
});

export function setWidgetUrl() {
// Redirect to a URL based on portalId
if (state.portalId) {
const newUrl = `https://${window.location.host}/${state.portalId}`;
cti.setWidgetUrl({ iFrameUrl: newUrl });
}
// Redirect to a new URL
const newUrl =
"https://github.hubspot.com/calling-extensions-sdk/demo-minimal-js.html";
cti.setWidgetUrl({ iFrameUrl: newUrl });
}

export function initialize() {
Expand Down
9 changes: 5 additions & 4 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.

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

0 comments on commit 746f18d

Please sign in to comment.