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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user