A single function that will change the current page's favicon (displayed in the tab bar) to a simple colored status icon, on demand.
This package is published on npm.
> npm install --save set-tab-status-icon
Then:
import setTabStatusIcon from 'set-tab-status-icon';
setTabStatusIcon('pass');
Or you can just include index.js and the setTabStatusIcon
function will be available on window
.
setTabStatusIcon('not-started'); // Gray icon
setTabStatusIcon('in-progress'); // Blue icon
setTabStatusIcon('pass'); // Green icon
setTabStatusIcon('fail'); // Red icon
setTabStatusIcon('#ff00dd'); // Pass any custom color