* added README
* moved listeners above addListener calls
This commit is contained in:
Will Bamberg
2016-01-19 15:30:21 -08:00
parent f98638396b
commit bba84627ab
3 changed files with 35 additions and 10 deletions

View File

@@ -1,8 +1,3 @@
/*
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,
@@ -19,3 +14,8 @@ function notify(message) {
"message": content
});
}
/*
Assign `notify()` as a listener to messages from the content script.
*/
chrome.runtime.onMessage.addListener(notify);