开发者

Google Chrome Extension: Notification System, RSS Reader

开发者 https://www.devze.com 2023-02-14 12:25 出处:网络
I\'ve created a simple RSS Reader extension for my blog, however, I was wondering how I could implement a notification system (like Google Reader Notifier + Gmail Notifier have).

I've created a simple RSS Reader extension for my blog, however, I was wondering how I could implement a notification system (like Google Reader Notifier + Gmail Notifier have). So, a little number would popup on the extension icon when a ne开发者_开发百科w post is available/unread.

How would I go around doing this?


You can do this with the chrome.browserAction.setBadgeText API.

Something like:

chrome.browserAction.setBadgeText({ text: '5' });
0

精彩评论

暂无评论...
验证码 换一张
取 消