⚠️ Favorite Icon Status
A small library for status manipulating in favicon.
Installation
npm install favorite-icon-status
Demo
Using
; const status = ;status; // 'ok', 'error' or 'warning'
Advanced options
; const status = faviconSrc: '/icons/favicon.png'; status; // 'ok', 'error' or 'warning'
API
.set(status: 'ok' | 'error' | 'warning')
Set the favicon with status.
; const status = ;status; // 'ok', 'error' or 'warning'
.reset()
Reset the favicon.
; const status = ; // ... status;
Browser support
- Chrome: ✅
- Firefox: ✅
- Opera: ✅
- IE: ❌
- Edge: ❌
- Safari: ❌ (Safari hides favicons)
License
MIT License