Skip to content

Instantly share code, notes, and snippets.

Last active October 25, 2021 09:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
freshdesk-messaging-facade with legacy browser fallback
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Freshdesk Messaging (formerly Freshchat) Facade</title>
<link rel="stylesheet" href="css/freshdesk-messaging-facade.min.css">
<script src="js/freshdesk-messaging-facade.min.js" type="module" async></script>
<freshdesk-messaging-facade id="freshdesk-messaging-facade" data-token="" data-siteid="" hidden>
<div class="freshdesk-messaging-icon" tabindex="0" role="button"></div>
<script nomodule>
function initFreshChat() {
token: "",
host: "",
siteId: "",
config: {
headerProperty: {
hideChatButton: false,
function initialize(i, t) {
var e;
? initFreshChat()
: (((e = i.createElement("script")).id = t), (e.async = !0), (e.src = ""), (e.onload = initFreshChat), i.head.appendChild(e));
function initiateCall() {
initialize(document, "freshchat-js-sdk");
window.addEventListener ? window.addEventListener("load", initiateCall, !1) : window.attachEvent("load", initiateCall, !1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment