added logging statements

This commit is contained in:
Will Bamberg
2015-10-30 10:13:18 -07:00
parent c96e993ceb
commit 5895c5c6bd
3 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
chrome.runtime.onMessage.addListener(notify);
function notify(message) {
console.log("background script received message");
chrome.notifications.create({
"type": "basic",
"iconUrl": chrome.extension.getURL("link.png"),

View File

@@ -1,6 +1,7 @@
window.addEventListener("click", notifyExtension);
function notifyExtension(e) {
console.log("content script sending message");
if (e.target.tagName != "A") {
return;
}

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Content scripting",
"name": "Notify link clicks",
"version": "1.0",
"applications": {
"gecko": {