added short comments for all JS functions

This commit is contained in:
Will Bamberg
2016-01-14 15:06:44 -08:00
parent d65a87520c
commit b636b41f1b
9 changed files with 85 additions and 1 deletions

View File

@@ -1,5 +1,13 @@
/*
Assign `notify()` as a listener to messages from the content script.
*/
chrome.runtime.onMessage.addListener(notify);
/*
Log that we received the message.
Then display a notification. The notification contains the URL,
which we read from the message.
*/
function notify(message) {
console.log("background script received message");
var title = chrome.i18n.getMessage("notificationTitle");