Description

Handle extension browser action button click.

Clicking the icon opens options page. This module will also set the icon badge value and allows updating it.

Classes


new BrowserAction()

Methods


<static> formatBadgeCount( value )

Description

Convert large numbers to shorter display format

Parameters
Name Type Description
value number
Returns

<static> setBadge( value )

Description

Update extension icon badge counter value

Parameters
Name Type Description
value number

the numeric value to display