npm.io
1.0.0 • Published 9 years ago

set-tab-status-icon

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

set-tab-status-icon

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

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

Keywords