@danielbrodin/favicon
v0.1.0
Published
A package to add notification markers and filter your favicon :)
Downloads
20
Maintainers
Readme
Favicon
A package to add notification markers and filter your favicon :)
Usage
yarn add @danielbrodin/favicon
import { favicon, grayscaleFilter } from '@danielbrodin/favicon';
if (__DEV__) {
favicon({ filter: [grayscaleFilter] });
}
function onNotificationUpdate(notificationCount) {
favicon({
showNotification: notificationCount > 0,
notificationColor: '#ba203a',
});
}
Settings will be saved so the grayscaleFilter
will be used also later when onNotificationUpdate
is called.