fix doc.domain errors on load
This commit is contained in:
parent
b7dacb664e
commit
e1af280017
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user