Add ability to translate from iframes
This commit is contained in:
parent
227e393922
commit
b99bcff855
1 changed files with 11 additions and 2 deletions
|
@ -638,6 +638,15 @@ Zotero_Browser.Tab.prototype._searchFrames = function(rootDoc, searchDoc) {
|
|||
}
|
||||
}
|
||||
|
||||
var frames = rootDoc.getElementsByTagName("iframe");
|
||||
for each(var frame in frames) {
|
||||
if(frame.contentDocument &&
|
||||
(frame.contentDocument == searchDoc ||
|
||||
this._searchFrames(frame.contentDocument, searchDoc))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue