aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattn2008-06-23 10:28:51 +0000
committermattn2008-06-23 10:28:51 +0000
commit2d3ecab302746e71ab153d6e176d608d7fda0af1 (patch)
tree6340164939b7f4b53044df36e81f71322630022e
parent62b785243e71bd93100ac55b61f9f3b4bcf150b9 (diff)
downloadvimperator-plugins-2d3ecab302746e71ab153d6e176d608d7fda0af1.tar.bz2
「sd」でspeeddialを表示する様修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@14468 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--speeddial.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/speeddial.js b/speeddial.js
index 5d5ac9d..1b2c615 100644
--- a/speeddial.js
+++ b/speeddial.js
@@ -19,7 +19,10 @@
function(arg, special){
if (arg.match(/^[0-9]+$/))
arg = pref.getComplexValue("extensions.speeddial.thumbnail-" + arg + "-url", nsISupportsString).data;
- if (arg) liberator.open(arg, special ? liberator.NEW_TAB : liberator.CURRENT_TAB);
+ else
+ if (arg.length == 0)
+ arg = "chrome://speeddial/content/speeddial.xul";
+ liberator.open(arg, special ? liberator.NEW_TAB : liberator.CURRENT_TAB);
}, {
completer: function(filter) {
candidates = [];