aboutsummaryrefslogtreecommitdiffstats
path: root/background_page.html
diff options
context:
space:
mode:
authorilya2009-10-28 23:29:29 -0700
committerilya2009-10-28 23:29:29 -0700
commit4d7e3f41fbdde0c240b9efeb3c4219ed5fdbbd3c (patch)
tree0d49e6d10e0b06bca5355df0de806e11aa0e6546 /background_page.html
parent2d23db77662023e10698a56636f05cb17bf52d5b (diff)
downloadvimium-4d7e3f41fbdde0c240b9efeb3c4219ed5fdbbd3c.tar.bz2
Clean up some code that's now unnecessary.
Diffstat (limited to 'background_page.html')
-rw-r--r--background_page.html21
1 files changed, 1 insertions, 20 deletions
diff --git a/background_page.html b/background_page.html
index 776274bb..d175c9b2 100644
--- a/background_page.html
+++ b/background_page.html
@@ -2,28 +2,10 @@
<head>
<script type="text/javascript" charset="utf-8">
chrome.extension.onConnect.addListener(function(port, name) {
- if (port.name == "nativeCommand")
- port.onMessage.addListener(handleNativeCommand);
- else if (port.name == "keyDown")
+ if (port.name == "keyDown")
port.onMessage.addListener(handleKeyDown);
});
- function handleNativeCommand(args) {
- console.log("received native command:", args);
-
- switch(args.command) {
- case "tabs.create":
- chrome.tabs.create({});
- break;
- case "tabs.remove":
- console.log("removing");
- chrome.tabs.getSelected(null, function(tab) {
- chrome.tabs.remove(tab.id);
- });
- break;
- }
- }
-
function createTab() {
console.log("createTab()");
chrome.tabs.create({});
@@ -40,7 +22,6 @@
keyToCommandRegistry['t'] = createTab;
keyToCommandRegistry['d'] = removeTab;
- var commandRegistry = {};
var keyQueue = "";
function handleKeyDown(key) {