const lag = require('./lag');

module.exports = (user, pings) => {
  const original = document.title;
  user.events.on('read', () => {
    document.title = `${original} (${lag.humanize(pings.currentLag())})`;
  });
};

const lag = require('./lag');

module.exports = (user, pings) => {
  const original = document.title;
  user.events.on('read', () => {
    document.title = `${lag.humanize(pings.currentLag())} - ${original}`;
  });
};

Increase the chances of seeing the actual lag when on narrow page tabs
Increase the chances of seeing the actual lag when on narrow page tabs
