src/devtool/js/bridge.js
// and send them to the devtool, then remove them from the page immediately
and send them to the devtool, then remove them from the page immediately
and send them to the devtool then remove them from the page immediately
function pollGraph() {
  if (graphContEl.children.length) {
    var el,
        data = {
          tabId: window.vizoneTabId,
          type: 'vizone-history',
          items: []
        };
    while (el = graphContEl.children[0]) {
      data.items.push(JSON.parse(el.innerText));
      el.remove();
    }
    chrome.extension.sendMessage(data);
  }
  timer = setTimeout(pollGraph, pollFreq);
}
function pollGraph ( ) { if ( graphContEl . children . length ) { var el , data = { tabId : window . vizoneTabId , type : 'vizone-history' , items : [ ] } ; while ( el = graphContEl . children [ 0 ] ) { data . items . push ( JSON . parse ( el . innerText ) ) ; el . remove ( ) ; } chrome . extension . sendMessage ( data ) ; } timer = setTimeout ( pollGraph , pollFreq ) ; }
and send them to the devtool, then remove them from the page immediately
and send them to the devtool then remove them from the page immediately