From 0bf8f8e086a937b0386ab693e22735512530894f Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 27 Aug 2008 01:11:31 +0000 Subject: [PATCH] display an error message when :dialog dominspector is called if the DOM Inspector extension is not installed --- content/vimperator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/vimperator.js b/content/vimperator.js index 755e123b..8e571d4c 100644 --- a/content/vimperator.js +++ b/content/vimperator.js @@ -62,7 +62,7 @@ liberator.config = { //{{{ ["customizetoolbar", "Customize the Toolbar", function () { BrowserCustomizeToolbar(); }], ["dominspector", "DOM Inspector", - function () { inspectDOMDocument(content.document); }], + function () { try { inspectDOMDocument(content.document); } catch (e) { liberator.echoerr("DOM Inspector extension not installed"); } }], ["downloads", "Manage Downloads", function () { toOpenWindowByType('Download:Manager', 'chrome://mozapps/content/downloads/downloads.xul', 'chrome,dialog=no,resizable'); }], ["history", "List your history",