Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

WebCatalog APIs

Quang Lam edited this page May 13, 2021 · 6 revisions

WebCatalog, Singlebox and Clovery let you inject custom Javascript code into web apps to allow a variety of use cases, including user interface modifications, notification enhancements and more.

In addition to standard web APIs, we provide an additional set of APIs:

webcatalog.setBadgeCount(count)

window.webcatalog.setBadgeCount(count: integer): Set badge count.

count Integer (optional) - If a value is provided, set the badge to the provided value otherwise, default to 0.

Sets the counter badge for current account/service. Setting the count to 0 will hide the badge.

For example:

// set badge count for current account/service to 10
window.webcatalog.setBadgeCount(10)`
Clone this wiki locally