Created
July 26, 2021 15:49
-
-
Save kanghyojun/17957645e26f85ea4464549636107113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var w = window; | |
if (w.ChannelIO) { | |
return (window.console.error || window.console.log || function(){})('ChannelIO script included twice.'); | |
} | |
var ch = function() { | |
ch.c(arguments); | |
}; | |
ch.q = []; | |
ch.c = function(args) { | |
ch.q.push(args); | |
}; | |
w.ChannelIO = ch; | |
function l() { | |
if (w.ChannelIOInitialized) { | |
return; | |
} | |
w.ChannelIOInitialized = true; | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = 'https://cdn.channel.io/plugin/ch-plugin-web.js'; | |
s.charset = 'UTF-8'; | |
var x = document.getElementsByTagName('script')[0]; | |
x.parentNode.insertBefore(s, x); | |
} | |
if (document.readyState === 'complete') { | |
l(); | |
} else if (window.attachEvent) { | |
window.attachEvent('onload', l); | |
} else { | |
window.addEventListener('DOMContentLoaded', l, false); | |
window.addEventListener('load', l, false); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment