Fixes #1826, Quick Copy does not work in Standalone

This commit is contained in:
Simon Kornblith 2011-07-02 04:00:12 +00:00
parent fa7ca7e2d7
commit 56eed344f5

View file

@ -1714,7 +1714,7 @@ var ZoteroPane = new function()
return;
}
var url = window.content.location.href;
var url = (window.content && window.content.location ? window.content.location.href : null);
var [mode, format] = Zotero.QuickCopy.getFormatFromURL(url).split('=');
var [mode, contentType] = mode.split('/');