File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
; ( function ( ) {
2
2
var iframeLoader = new window . ChatBotUiLoader . IframeLoader ( )
3
3
4
+ const iframeOrigin = document . head . querySelector (
5
+ 'meta[name="page-chatbot-origin"]' ) ?. content ||
6
+ 'https://d2sozpdiqok6m4.cloudfront.net'
7
+
4
8
const origin = window . parent . origin
5
9
var chatbotUiconfig = {
6
10
ui : {
26
30
enableLiveChat : false ,
27
31
} ,
28
32
iframe : {
29
- iframeOrigin : 'https://d2sozpdiqok6m4.cloudfront.net' ,
33
+ iframeOrigin,
30
34
shouldLoadIframeMinimized : true ,
31
35
iframeSrcPath : '/#/?lexWebUiEmbed=true&parentOrigin=' + origin ,
32
36
} ,
Original file line number Diff line number Diff line change 62
62
<meta name =" dcterms.identifier" content =" {{ page.version }} " >
63
63
<meta name =" page-url" content =" {{ page.url }} " >
64
64
<meta name =" page-nav-header-levels" content =" {{ or page.attributes.nav-header-levels 0 }} " >
65
+ <meta name =" page-chatbot-origin" content =" {{ page.attributes.chatbot-origin }} " >
65
66
66
67
{{! meta tags starting docsearch: are automatically extracted by Algolia }}
67
68
{{! docsearch:version has special handling so we use `cversion` }}
You can’t perform that action at this time.
0 commit comments