Skip to content

Commit

Permalink
fix: change var to let
Browse files Browse the repository at this point in the history
  • Loading branch information
dhodgsonintergral committed Oct 9, 2024
1 parent e486cd4 commit ae44f0b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions public/app/intergral/intercom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ export function useIntercom(userName: string, userEmail: string) {
// Intercom setup function
const setupIntercom = () => {
(function() {
var w = window as any;
var ic = w.Intercom;
let w = window as any;
let ic = w.Intercom;
if (typeof ic === "function") {
ic('reattach_activator');
ic('update', w.intercomSettings);
} else {
var d = document;
var i = function() {
let d = document;
let i = function () {
(i as any).c(arguments);
};
(i as any).q = [];
(i as any).c = function(args: any) {
(i as any).q.push(args);
};
w.Intercom = i;
var l = function() {
var s = d.createElement('script');
let l = function () {
let s = d.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://widget.intercom.io/widget/ok1wowgi';
var x = d.getElementsByTagName('script')[0];
let x = d.getElementsByTagName('script')[0];
x.parentNode?.insertBefore(s, x);
};
if (document.readyState === 'complete') {
Expand Down

0 comments on commit ae44f0b

Please sign in to comment.