Skip to content

Commit

Permalink
Merge pull request #1 from addy-ai/live
Browse files Browse the repository at this point in the history
made it get current demo
  • Loading branch information
MichaelVandi committed Oct 23, 2023
2 parents 9e12609 + 4f3c57d commit e68130f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@

<div id="background-image-homepage">
</div>
<!-- Script gets embedded here -->
<!-- <script id="4c0aa5a8-8d51-4573-8230-eec6a91fb15c" src="https://cdn.jsdelivr.net/gh/addy-ai/customer-inquiry-bot@latest/js/bubble.min.js" title="embed"></script> -->

<!-- Script gets embedded here -->
<!-- <script src="https://cdn.jsdelivr.net/gh/addy-ai/customer-inquiry-bot@latest/js/bubble.min.js"
id="4c0aa5a8-8d51-4573-8230-eec6a91fb15c" title="embed"></script> -->

Expand Down
5 changes: 2 additions & 3 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const demosList = [
{
"companyName": "Educohire",
"chatbotPublicId": "4c0aa5a8-8d51-4573-8230-eec6a91fb15c",
"page": "/educohire",
"page": "#educohire",
"iframeURL": "https://www.educohire.com/",
"backgroundImageURL": "https://tinyurl.com/9ff2d8d6", // failover if iframeURL has security rules preventing embed
}
Expand All @@ -23,8 +23,7 @@ async function loadDemo() {
// Now make the backgroundImageDiv
for (let i = 0; i < demosList.length; i++) {
const currentDemo = demosList[i];
// currentURL.includes(currentDemo["page"])
if (true) {
if (currentURL.includes(currentDemo["page"])) {
// Create script tag for this particular demo
const scriptTag = document.createElement("script");

Expand Down

0 comments on commit e68130f

Please sign in to comment.