src/js/popup.js
/* Send message to content script of tab to select previous result */
Send message to content script of tab to select previous result
Send message to content script of tab to select previous result
function selectPrev() {
  chrome.tabs.query({
    'active': true,
    'currentWindow': true
  },
    function (tabs) {
      if ('undefined' != typeof tabs[0].id && tabs[0].id) {
        chrome.tabs.sendMessage(tabs[0].id, {
          'message': 'selectPrevNode'
        });
      }
    });
}
function selectPrev ( ) { chrome . tabs . query ( { 'active' : true , 'currentWindow' : true } , function ( tabs ) { if ( 'undefined' != typeof tabs [ 0 ] . id && tabs [ 0 ] . id ) { chrome . tabs . sendMessage ( tabs [ 0 ] . id , { 'message' : 'selectPrevNode' } ) ; } } ) ; }
Send message to content script of tab to select previous result
Send message to content script of tab to select previous result