fix doc.domain errors on load

This commit is contained in:
Simon Kornblith 2006-10-30 05:44:48 +00:00
parent b7dacb664e
commit e1af280017

View File

@ -141,6 +141,10 @@ Zotero_Ingester_Interface.contentLoad = function(event) {
var doc = event.originalTarget;
var rootDoc = doc;
if(!doc.domain) {
return;
}
// get the appropriate root document to check which browser we're on
while(rootDoc.defaultView.frameElement) {
rootDoc = rootDoc.defaultView.frameElement.ownerDocument;