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
+1
View File
@@ -1,6 +1,7 @@
chrome.runtime.onMessage.addListener(notify); chrome.runtime.onMessage.addListener(notify);
function notify(message) { function notify(message) {
console.log("background script received message");
chrome.notifications.create({ chrome.notifications.create({
"type": "basic", "type": "basic",
"iconUrl": chrome.extension.getURL("link.png"), "iconUrl": chrome.extension.getURL("link.png"),
+1
View File
@@ -1,6 +1,7 @@
window.addEventListener("click", notifyExtension); window.addEventListener("click", notifyExtension);
function notifyExtension(e) { function notifyExtension(e) {
console.log("content script sending message");
if (e.target.tagName != "A") { if (e.target.tagName != "A") {
return; return;
} }
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Content scripting", "name": "Notify link clicks",
"version": "1.0", "version": "1.0",
"applications": { "applications": {
"gecko": { "gecko": {