Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 888 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 888 Bytes

set-tab-status-icon

Travis CI

A single function that will change the current page's favicon (displayed in the tab bar) to a simple colored status icon, on demand.

status icon preview

Install

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.

Usage

setTabStatusIcon('not-started'); // Gray icon
setTabStatusIcon('in-progress'); // Blue icon
setTabStatusIcon('pass'); // Green icon
setTabStatusIcon('fail'); // Red icon
setTabStatusIcon('#ff00dd'); // Pass any custom color