import TabNotifier from 'tab-notifier';
Prefixes the document title with a number
TabNotifier.notify(); // prefixes title with (1)
TabNotifier.notify(1); // prefixes title with (1)
TabNotifier.notify(2); // prefixes title with (2)
Updates the document title to a specific message and alternates every 1 second by default
TabNotifier.notifyMessage('New Message Received!');
Options:
TabNotifier.notifyMessage('New Message Received!', {
intervalSpeed: 1000
});
Resets the title back to the original document title
TabNotifier.reset();
npm start
npm run build