Skip to content

Dynamically set a colored status icon in the browser tab

License

Notifications You must be signed in to change notification settings

islemaster/set-tab-status-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Dynamically set a colored status icon in the browser tab

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published