angular-intercom.js
function createScript(url, appID) {
    if (!document) { return; }
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.async = true;
    script.src = url+appID;
    // Attach the script tag to the document head
    var s = document.getElementsByTagName('head')[0];
    s.appendChild(script);
  }
function createScript(url, appID) {
    if (!document) { return; }
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.async = true;
    script.src = url+appID;
    // Attach the script tag to the document head
    var s = document.getElementsByTagName('head')[0];
    s.appendChild(script);
  }
function createScript ( url , appID ) { if ( ! document ) { return ; } var script = document . createElement ( 'script' ) ; script . type = 'text/javascript' ; script . async = true ; script . src = url + appID ; // Attach the script tag to the document head var s = document . getElementsByTagName ( 'head' ) [ 0 ] ; s . appendChild ( script ) ; }
Create a script tag with moment as the source and call our onScriptLoad callback when it has been loaded
Create a script tag with moment as the source and call our onScriptLoad callback when it has been loaded