Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
Specify version to download the correct CSS file
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaDelBuono committed May 22, 2019
1 parent 104ca31 commit 1167184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/javascript/hmcts-webchat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function webchat_init(customParams) {
const version = '0.1.8';

const defaultParams = {
uuid: '',
tenant: '',
Expand Down Expand Up @@ -39,7 +41,7 @@ function webchat_init(customParams) {
(params.stylesheetURL.startsWith('/') && location.protocol === 'https') ?
'https://' + window.location.hostname + ':' + window.location.port + params.stylesheetURL :
// otherwise assume we are running locally for dev or testing, and use master version of CSS from jsdelivr
'https://cdn.jsdelivr.net/gh/hmcts/ctsc-web-chat/assets/css/hmcts-webchat.css',
'https://cdn.jsdelivr.net/npm/@hmcts/ctsc-web-chat@' + version + '/assets/css/hmcts-webchat.min.css',
//busHandlerURL: params.busHandlerURL,
//linkText: params.linkText,
additionalText: params.additionalText,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ctsc-web-chat",
"version": "0.1.7",
"version": "0.1.8",
"description": "Assets to support HMCTS CTSC web chat",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1167184

Please sign in to comment.