plugin updates
This commit is contained in:
@@ -75,6 +75,9 @@ class WpmfPdfEmbedDivi extends Component {
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
if (this.props.embed === 'on' && !this.state.embed) {
|
||||
if($(this.wrap.current).find(".wpmf-pdfemb-viewer").length) {
|
||||
$(this.wrap.current).find(".wpmf-pdfemb-viewer").pdfEmbedder();
|
||||
}
|
||||
this.setState({
|
||||
embed: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user