0.1.0 • Published 6 years ago

@danielbrodin/favicon v0.1.0

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

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.