lib/third_party/tracing/base/base.js
function initialize() {
    if (global.isVinn) {
      tr.isVinn = true;
    } else if (global.process && global.process.versions.node) {
      tr.isNode = true;
    } else {
      tr.isVinn = false;
      tr.isNode = false;
      tr.doc = document;

      tr.isMac = /Mac/.test(navigator.platform);
      tr.isWindows = /Win/.test(navigator.platform);
      tr.isChromeOS = /CrOS/.test(navigator.userAgent);
      tr.isLinux = /Linux/.test(navigator.userAgent);
    }
    tr.isHeadless = tr.isVinn || tr.isNode;
  }
function initialize() {
    if (global.isVinn) {
      tr.isVinn = true;
    } else if (global.process && global.process.versions.node) {
      tr.isNode = true;
    } else {
      tr.isVinn = false;
      tr.isNode = false;
      tr.doc = document;

      tr.isMac = /Mac/.test(navigator.platform);
      tr.isWindows = /Win/.test(navigator.platform);
      tr.isChromeOS = /CrOS/.test(navigator.userAgent);
      tr.isLinux = /Linux/.test(navigator.userAgent);
    }
    tr.isHeadless = tr.isVinn || tr.isNode;
  }
function initialize ( ) { if ( global . isVinn ) { tr . isVinn = true ; } else if ( global . process && global . process . versions . node ) { tr . isNode = true ; } else { tr . isVinn = false ; tr . isNode = false ; tr . doc = document ; tr . isMac = / Mac / . test ( navigator . platform ) ; tr . isWindows = / Win / . test ( navigator . platform ) ; tr . isChromeOS = / CrOS / . test ( navigator . userAgent ) ; tr . isLinux = / Linux / . test ( navigator . userAgent ) ; } tr . isHeadless = tr . isVinn || tr . isNode ; }
Initialization which must be deferred until run-time.
Initialization which must be deferred until run - time .