www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d71428ecc72df5309c3a1625b1dda4e7f13ed9ba
parent 98d4df34ac2bb2bbbbca0f25e7b6f98cd21323c4
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 29 Mar 2011 01:32:22 +0000

don't throw if nsIURI.host throws


Diffstat:
Mchrome/content/zotero/locateMenu.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/locateMenu.js b/chrome/content/zotero/locateMenu.js @@ -365,8 +365,8 @@ var Zotero_LocateMenu = new function() { var uri; try { uri = Zotero_LocateMenu.ios.newURI(urlField, null, null); + if(uri && uri.host && uri.scheme !== 'file') return urlField; } catch(e) {}; - if(uri && uri.host && uri.scheme !== 'file') return urlField; } if(item.isRegularItem()) {