aboutsummaryrefslogtreecommitdiffstats
path: root/ubiquity.js
diff options
context:
space:
mode:
authorteramako2008-09-03 11:47:32 +0000
committerteramako2008-09-03 11:47:32 +0000
commitf61f94db506819c3f622be30b7ad782d37def1af (patch)
tree15060e2e2a44853893733a015d587ed834d3772d /ubiquity.js
parent5811036c9538b1190eef28ce1809426484769982 (diff)
downloadvimperator-plugins-f61f94db506819c3f622be30b7ad782d37def1af.tar.bz2
Ubiquityを無効にしていた場合、即終了するよう変更
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@18757 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'ubiquity.js')
-rw-r--r--ubiquity.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ubiquity.js b/ubiquity.js
index fbdf60f..7f17236 100644
--- a/ubiquity.js
+++ b/ubiquity.js
@@ -3,7 +3,7 @@
* @name Ubiquity Glue
* @description viperator-plugin for Ubiquity
* @depend Ubiquity (ubiquity@labs.mozilla.com)
- * @version 0.1a
+ * @version 0.1.1a
* ==/VimperatorPlugin==
*
* USAGE:
@@ -27,7 +27,8 @@
liberator.plugins.ubiquity = (function(){
-if (!Application.extensions.has('ubiquity@labs.mozilla.com')){
+var ubiquityID = 'ubiquity@labs.mozilla.com';
+if (!Application.extensions.has(ubiquityID) || !Application.extensions.get(ubiquityID).enabled){
Components.utils.reportError('Vimperator: UbiquityGlue: Ubiquity is not installed');
return null;
}