popup/ruler_popup.js
/**
* Inject CSS file and send appropriate command
* @param {object} tabs
*/
Inject CSS file and send appropriate command
Inject CSS file and send appropriate command
function sendShowRuler(tabs) {
  browser.tabs.insertCSS({file: '/css/ruler.css'}).then(() => {
    browser.tabs.sendMessage(tabs[0].id, {
      command: "showRuler"
    });
  });
}
function sendShowRuler ( tabs ) { browser . tabs . insertCSS ( { file : '/css/ruler.css' } ) . then ( ( ) => { browser . tabs . sendMessage ( tabs [ 0 ] . id , { command : "showRuler" } ) ; } ) ; }
Inject CSS file and send appropriate command
Inject CSS file and send appropriate command