popup/ruler_popup.js
/**
* Toggle Breakpoints taking account of the popup entry checkbox
* @param {bool} state
*/
Toggle Breakpoints taking account of the popup entry checkbox
Toggle Breakpoints taking account of the popup entry checkbox
function toggleBreakpoints(state) {
  if (state) {
    browser.tabs.query({active: true, currentWindow: true})
      .then(sendShowBreakpoints)
      .catch(onError);
  } else {
    browser.tabs.query({active: true, currentWindow: true})
      .then(sendResetBreakpoints)
      .catch(onError);
  }
}
function toggleBreakpoints ( state ) { if ( state ) { browser . tabs . query ( { active : true , currentWindow : true } ) . then ( sendShowBreakpoints ) . catch ( onError ) ; } else { browser . tabs . query ( { active : true , currentWindow : true } ) . then ( sendResetBreakpoints ) . catch ( onError ) ; } }
Toggle Breakpoints taking account of the popup entry checkbox
Toggle Breakpoints taking account of the popup entry checkbox