mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
fix doc.domain errors on load
This commit is contained in:
parent
b7dacb664e
commit
e1af280017
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue