Fix an error spotted in an error report

This commit is contained in:
Simon Kornblith 2012-02-16 07:59:42 -05:00
parent a47174748e
commit 95fa3bc554

View file

@ -2054,7 +2054,7 @@ Zotero.ItemTreeView.prototype.onDragStart = function (event) {
}
// Get Quick Copy format for current URL
var url = this._ownerDocument.defaultView.content ?
var url = this._ownerDocument.defaultView.content && this._ownerDocument.defaultView.content.location ?
this._ownerDocument.defaultView.content.location.href : null;
var format = Zotero.QuickCopy.getFormatFromURL(url);