From d71428ecc72df5309c3a1625b1dda4e7f13ed9ba Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 29 Mar 2011 01:32:22 +0000 Subject: [PATCH] don't throw if nsIURI.host throws --- chrome/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 index 82e3790a2..e4e0d115b 100644 --- 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()) {