Add attr()/text() to search translators
This commit is contained in:
		
					parent
					
						
							
								d27b622f9f
							
						
					
				
			
			
				commit
				
					
						d3a78982f0
					
				
			
		
					 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._sandboxManager.sandbox.ZU = this._sandboxZotero.Utilities;
 | 
				
			||||||
		this._transferItem = this._sandboxZotero._transferItem;
 | 
							this._transferItem = this._sandboxZotero._transferItem;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		// Add web helper functions
 | 
							// Add helper functions
 | 
				
			||||||
		if (this.type == 'web') {
 | 
							if (this.type == 'web' || this.type == 'search') {
 | 
				
			||||||
			this._sandboxManager.sandbox.attr = this._attr.bind(this);
 | 
								this._sandboxManager.sandbox.attr = this._attr.bind(this);
 | 
				
			||||||
			this._sandboxManager.sandbox.text = this._text.bind(this);
 | 
								this._sandboxManager.sandbox.text = this._text.bind(this);
 | 
				
			||||||
			this._sandboxManager.sandbox.innerText = this._innerText.bind(this);
 | 
								this._sandboxManager.sandbox.innerText = this._innerText.bind(this);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue