src/browser.js
/**
   * transfer log to server via zero pixel image request
   */
transfer log to server via zero pixel image request
transfer log to server via zero pixel image request
_sendLog (str, cb) {
    const img = new Image()
    const done = () => cb()
    img.onload = done
    img.onerror = done
    img.onabort = done
    img.src = this.opts.url + '?id=' + random(6) + '&log=' + encodeURIComponent(str)
  }
_sendLog ( str , cb ) { const img = new Image ( ) const done = ( ) => cb ( ) img . onload = done img . onerror = done img . onabort = done img . src = this . opts . url + '?id=' + random ( 6 ) + '&log=' + encodeURIComponent ( str ) }
transfer log to server via zero pixel image request
transfer log to server via zero pixel image request