mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
Add attr()/text() to search translators
This commit is contained in:
parent
8360d7e7b6
commit
6d511b75e5
1 changed files with 2 additions and 2 deletions
|
|
@ -1861,8 +1861,8 @@ Zotero.Translate.Base.prototype = {
|
|||
this._sandboxManager.sandbox.ZU = this._sandboxZotero.Utilities;
|
||||
this._transferItem = this._sandboxZotero._transferItem;
|
||||
|
||||
// Add web helper functions
|
||||
if (this.type == 'web') {
|
||||
// Add helper functions
|
||||
if (this.type == 'web' || this.type == 'search') {
|
||||
this._sandboxManager.sandbox.attr = this._attr.bind(this);
|
||||
this._sandboxManager.sandbox.text = this._text.bind(this);
|
||||
this._sandboxManager.sandbox.innerText = this._innerText.bind(this);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue