summaryrefslogtreecommitdiff
path: root/common/content/browser.js
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2009-07-11 00:03:28 +1000
committerDoug Kearns <dougkearns@gmail.com>2009-07-11 00:43:27 +1000
commit1f7b6f4b0564454409e91eccccf6e5f819f9a704 (patch)
tree550b57b624493ef5545cde5ac7f5dcadda1e2ac5 /common/content/browser.js
parentc062cf48df53a65470dcebe1dd4d164ad138fc07 (diff)
downloadpentadactyl-1f7b6f4b0564454409e91eccccf6e5f819f9a704.tar.gz
Make :open <noarg> behaviour match that of :tabopen/:winopen.
Diffstat (limited to 'common/content/browser.js')
-rw-r--r--common/content/browser.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/common/content/browser.js b/common/content/browser.js
index 05b8f1eb..a1ef083d 100644
--- a/common/content/browser.js
+++ b/common/content/browser.js
@@ -255,15 +255,14 @@ function Browser() //{{{
"Open one or more URLs in the current tab",
function (args)
{
- if (args.string)
- liberator.open(args.string);
- else if (args.bang)
- BrowserReloadSkipCache();
+ args = args.string;
+
+ if (args)
+ liberator.open(args);
else
- BrowserReload();
+ liberator.open("about:blank");
},
{
- bang: true,
completer: function (context) completion.url(context),
literal: 0
});