| @@ -453,9 +453,9 @@ | ||
| 453 | 453 | } ), |
| 454 | 454 | div( data.description ) |
| 455 | 455 | ]; |
| 456 | 456 | |
| 457 | - if ( data.usedAddons && data.usedAddons.length ) { | |
| 457 | + if ( data.usedAddons?.length ) { | |
| 458 | 458 | detailsChildren.push( |
| 459 | 459 | div( { |
| 460 | 460 | className: 'frm-application-modal-label', |
| 461 | 461 | text: __( 'Required Add-ons', 'formidable-pro' ) |
| @@ -524,8 +524,10 @@ | ||
| 524 | 524 | |
| 525 | 525 | if ( data.upgradeUrl ) { |
| 526 | 526 | primaryActionButton.classList.remove( 'dismiss' ); |
| 527 | 527 | primaryActionButton.setAttribute( 'href', data.upgradeUrl ); |
| 528 | + primaryActionButton.target = '_blank'; | |
| 529 | + primaryActionButton.rel = 'noopener'; | |
| 528 | 530 | } |
| 529 | 531 | |
| 530 | 532 | const hookName = 'frm_view_application_modal_primary_action_button'; |
| 531 | 533 | const args = { data }; |