From f61f94db506819c3f622be30b7ad782d37def1af Mon Sep 17 00:00:00 2001 From: teramako Date: Wed, 3 Sep 2008 11:47:32 +0000 Subject: Ubiquityを無効にしていた場合、即終了するよう変更 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@18757 d0d07461-0603-4401-acd4-de1884942a52 --- ubiquity.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ubiquity.js') 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; } -- cgit v1.2.3