File size: 535 Bytes
2fcec7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use async";
define({
  load: function (url, require, onLoad, config) {
    if (config.isBuild) {
      onLoad(null);
    } else {
      var nombreDeFuncion = "__load_client__" + new Date().getTime();
      window[nombreDeFuncion] = onLoad;
      var s = document.createElement('script');
      s.type = 'text/javascript';
      s.async = true;
      s.src = "https://apis.google.com/js/client.js?onload=" + nombreDeFuncion;
      var t = document.getElementsByTagName('script')[0];
      t.parentNode.insertBefore(s, t);
    }
  }
});