init code refactorization - global var

I thought u wanted the rest in the header script. doesnt that part have to always load to include branch.min.js

-- 
Jason Feng

On December 17, 2014 at 2:51:24 PM, Dmitri G (notifications@github.com) wrote:

In src/branch.js:

>  var Branch = function Branch(app_id, debug, callback) {
>    'use strict';
>    this.initialized = false;
>    this.api = {};
>    this.utils = {};
> +
> +  // Get browser_fingerprint_id
> +                  var b = document.createElement("script");
> +                  b.type = "text/javascript";
> +                  b.async = !0;
> +                  b.src = "https://bnc.lt/_r";
> +                  document.getElementsByTagName("head")[0].appendChild(b);
> +                  Branch._r = function() {
> +                  if (void 0 !== window.browser_fingerprint_id) {
... at this point we need to do the rest of the init

—
Reply to this email directly or view it on GitHub.