Skip to content

Instantly share code, notes, and snippets.

View vanessaramirez's full-sized avatar

Vanessa N Ramirez vanessaramirez

View GitHub Profile
(function() {
function inIframe() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
if (!inIframe()) {
(function() {
function inIframe() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
if (!inIframe()) {
<script type="text/javascript">
window.zESettings = {
webWidget: {
authenticate: {
jwtFn: function(callback) {
// Fetch your jwt token and then call our supplied callback below.
callback('YOUR_JWT_TOKEN');
},
chat: {
jwtFn: function(callback) {
(function() {
function inIframe() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
if (!inIframe()) {
(function() {
function inIframe() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
if (!inIframe()) {