commit ebe08836e80cde46b661199450eb8e482a1d4cbc parent f07fe7184de1cc21a18cf0f9395e63ebd2b03421 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 3 Jul 2015 23:52:30 -0400 A little more Quick Copy safety Diffstat:
| M | chrome/content/zotero/xpcom/quickCopy.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js @@ -115,7 +115,7 @@ Zotero.QuickCopy = new function() { catch (e) {} // Skip non-HTTP URLs - if (!/^https?$/.test(nsIURI.scheme)) { + if (!nsIURI || !/^https?$/.test(nsIURI.scheme)) { return quickCopyPref; }