ChemPal Documentation - v1.18.0
    Preparing search index...

    Module utils/priceDropBadge

    How the toolbar badge shows price drops the user hasn't seen. A ChemPal page that is visible or searching controls the badge (see "./badgeController"); otherwise the background worker shows the drops. A hidden page couldn't flash it, since browsers slow its timers down.

    Price Alerts - Utils

    dropBadgeText

    The badge's text for a number of products with an unseen drop.

    isDropBadgeText

    Whether the badge is showing price drops.

    showDropBadge

    Shows the number of products with an unseen drop on the badge.

    clearDropBadge

    Replaces a price drop badge with an empty one. Leaves any other badge alone.

    claimBadge

    Answers the background worker when it asks whether this page controls the badge.

    isBadgeClaimed

    Whether a page controls the badge. For the background worker.