(path, target, name)
| 10 | } |
| 11 | |
| 12 | setPath (path, target, name) |
| 13 | { |
| 14 | if(target==this.props.target && ((this.props.filter+"").trim().indexOf(name)!=-1 || (this.props.filter.trim()+"").length==0)) |
| 15 | { |
| 16 | //console.log("path: "+path+"?reset="+this.state.counter); |
| 17 | this.state.counter+=1; |
| 18 | document.getElementById(this.props.id).src = path+"?reset="+this.state.counter; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | render() { |
| 23 | return <img className="previewImage" id={this.props.id} width="100%"/>; |
no outgoing calls
no test coverage detected