1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 20:54:11 +01:00

Refactor :open action.

This commit is contained in:
Doug Kearns
2010-10-18 01:45:32 +11:00
parent 0b4ff6652b
commit 9a9a30f979

View File

@@ -147,12 +147,8 @@ const Browser = Module("browser", {
commands.add(["o[pen]"],
"Open one or more URLs in the current tab",
function (args) {
if (args[0])
dactyl.open(args[0]);
else
dactyl.open("about:blank");
}, {
function (args) { dactyl.open(args[0] || "about:blank"); },
{
completer: function (context) completion.url(context),
domains: function (args) array.compact(dactyl.parseURLs(args[0] || "").map(
function (url) util.getHost(url))),