counter.js
// Returns the title without any annotated count
Returns the title without any annotated count
Returns the title without any annotated count
function titleWithoutCount() {
  const title = document.title;
  const indexOfCount = title.indexOf(" (");
  if (indexOfCount >= 0) {
    return title.substring(0, indexOfCount);
  } else {
    return title;
  }
}
function titleWithoutCount ( ) { const title = document . title ; const indexOfCount = title . indexOf ( " (" ) ; if ( indexOfCount >= 0 ) { return title . substring ( 0 , indexOfCount ) ; } else { return title ; } }
Returns the title without any annotated count
Returns the title without any annotated count