module.exports = (Franz, options) => {
  function getTasks() {
    
    let todayCount = 0;
    let inboxCount = 0; 
    
    const todayElement = document.querySelector("#top_filters .counter.overdue_color");   
    const inboxElement = document.querySelector("#filter_inbox .counter"); 	 

    if (todayElement) {
      todayCount = parseInt(todayElement.innerHTML, 10);
    }

    if (inboxElement) {
      inboxCount = parseInt(inboxElement.innerHTML, 10);
    }

    Franz.setBadge(todayCount, inboxCount);    
  }

  Franz.loop(getTasks);    
};

module.exports = (Franz, options) => {
  function getTasks() {
    
    let todayCount = 0;
    let inboxCount = 0; 
    
    const todayElement = document.querySelector("#top_filters .counter.overdue_color");   
    const inboxElement = document.querySelector("#filter_inbox .counter"); 	 

    if (todayElement) {
      todayCount = parseInt(todayElement.innerHTML, 10);
    }

    if (inboxElement) {
      inboxCount = parseInt(inboxElement.innerHTML, 10);
    }

    Franz.setBadge(inboxCount, todayCount);    
  }

  Franz.loop(getTasks);    
};

Switch primary badge counter to inbox
Switch primary badge counter to inbox
