1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 17:04:13 +01:00

Refactor last commit.

This commit is contained in:
Doug Kearns
2012-06-24 22:10:38 +10:00
parent 83cd793af6
commit 8241978809

View File

@@ -358,7 +358,7 @@ var Addons = Module("addons", {
}, { }, {
}, { }, {
commands: function (dactyl, modules, window) { commands: function (dactyl, modules, window) {
const { CommandOption, commands, completion } = modules; const { CommandOption, commands, completion, io } = modules;
commands.add(["addo[ns]", "ao"], commands.add(["addo[ns]", "ao"],
"List installed extensions", "List installed extensions",
@@ -388,7 +388,7 @@ var Addons = Module("addons", {
"Install an extension", "Install an extension",
function (args) { function (args) {
let url = args[0]; let url = args[0];
let file = modules.io.File(url); let file = io.File(url);
function install(addonInstall) { function install(addonInstall) {
addonInstall.addListener(addonListener); addonInstall.addListener(addonListener);
addonInstall.install(); addonInstall.install();