diff --git a/assets/javascript/hmcts-webchat.js b/assets/javascript/hmcts-webchat.js index 61e67be..e67ff67 100644 --- a/assets/javascript/hmcts-webchat.js +++ b/assets/javascript/hmcts-webchat.js @@ -44,7 +44,7 @@ function parseText(text) { } function webchat_init(customParams) { - const version = '0.3.7'; + const version = '0.3.8'; const requiredParams = [ 'uuid', 'tenant', @@ -100,7 +100,8 @@ function webchat_init(customParams) { path: '/.', buttonContainerId: 'ctsc-web-chat', chatDownAction: 'showMessage', // use 'showMessage' or 'hideHeader' - chatLinkFocusable: true + chatLinkFocusable: true, + gdsMajorVersion: 3 }; let params = Object.assign({}, defaultParams, customParams); @@ -117,7 +118,7 @@ function webchat_init(customParams) { params.stylesheetURL.startsWith('https:') ? params.stylesheetURL : (params.stylesheetURL.startsWith('/') && location.protocol === 'https') ? 'https://' + window.location.hostname + ':' + window.location.port + params.stylesheetURL : - 'https://cdn.jsdelivr.net/npm/@hmcts/ctsc-web-chat@' + version + '/assets/css/hmcts-webchat.min.css', + 'https://cdn.jsdelivr.net/npm/@hmcts/ctsc-web-chat@' + version + '/assets/css/hmcts-webchat-gds-v' + params.gdsMajorVersion + '.css', busHandlerURL: params.busHandlerURL, chatDownAction: params.chatDownAction, chatLinkFocusable: params.chatLinkFocusable, diff --git a/package.json b/package.json index 76fba85..602d11d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ctsc-web-chat", - "version": "0.3.7", + "version": "0.3.8", "description": "HMCTS CTSC Web Chat", "repository": { "type": "git",