Created
July 13, 2012 15:10
-
-
Save draeton/3105406 to your computer and use it in GitHub Desktop.
Testing the chrome extension history API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Test", | |
"version": "0.1", | |
"manifest_version": 2, | |
"description": "Test", | |
"permissions": [ | |
"history" | |
], | |
"background": { | |
"scripts": [ | |
"test.js" | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window, chrome) { | |
"use strict"; | |
window.console.log("adding event listener..."); | |
chrome.history.onVisited.addListener(function (result) { | |
window.console.log("result -> ", result); | |
}); | |
}(window, chrome)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment