Skip to content

Commit

Permalink
📝 docs: Show the new embedding structure in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed Jun 4, 2020
1 parent c53ac0b commit 91489b8
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,17 @@ You can inject Leopard Chat UI into a specific element on a page. This might be
<script type="text/javascript">
window.TENEOCTX || (TENEOCTX = {});
TENEOCTX = {
pageTitle: document.title,
pageUrl: window.location.href,
pageTopic: "Help",
message: "This was sent from the customer's web site"
init: {
trustedDomain: "", // something like http://localhost:8080 // "" = receive and post messages to all domains
allowScripts: true // false = if you want to disable potential eval
},
ctx: {
eventSource: "leopard-embed",
pageTitle: document.title,
pageUrl: window.location.href,
pageTopic: "Help",
message: "This was sent from the customer's web site"
}
};
</script>

Expand Down

0 comments on commit 91489b8

Please sign in to comment.