A little more Quick Copy safety

This commit is contained in:
Dan Stillman 2015-07-03 23:52:30 -04:00
parent f07fe7184d
commit ebe08836e8

View file

@ -115,7 +115,7 @@ Zotero.QuickCopy = new function() {
catch (e) {} catch (e) {}
// Skip non-HTTP URLs // Skip non-HTTP URLs
if (!/^https?$/.test(nsIURI.scheme)) { if (!nsIURI || !/^https?$/.test(nsIURI.scheme)) {
return quickCopyPref; return quickCopyPref;
} }