Description

This module adds custom options to chrome browser action context menu (right click on extension icon next to address bar). contextMenus permissions is required inmanifest.json. Instantiate new ContextMenu() to activate this functionality.

Classes


new ContextMenu()

Methods


<private, static> generateUrl( channel )

Description

Constructs absolute shareable url then calls the callback function

Parameters
Name Type Description
channel Object

one of share.options has been resolved. The first param of the callback function is the full url returned by this function.


<private, static> contextMenuOnClick( info )

Description

when user clicks on context menu option

Parameters
Name Type Description
info Object

click event details