Merge pull request #206 from aurimasv/ads
Use the last version of the page for translation.
This commit is contained in:
commit
75999bcc66
1 changed files with 2 additions and 1 deletions
|
@ -794,7 +794,8 @@ Zotero_Browser.Tab.prototype._translatorsAvailable = function(translate, transla
|
|||
// if there's already a scrapable page in the browser window, and it's
|
||||
// still there, ensure it is actually part of the page, then return
|
||||
if(this.page.translators && this.page.translators.length && this.page.document.location) {
|
||||
if(this.page.document.defaultView && !this.page.document.defaultView.closed) {
|
||||
if(this.page.document.defaultView && !this.page.document.defaultView.closed
|
||||
&& this.page.document.location.href != translate.document.location.href) {
|
||||
// if it is still there, switch translation to take place on
|
||||
if(!translators.length || this.page.translators[0].priority <= translators[0].priority) return;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue