| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | |
| 3 | 3 | jQuery( document ).ready( function() { |
| 4 | 4 | const installLink = document.getElementById( 'frm_install_link' ); |
| 5 | 5 | |
| 6 | - if ( installLink !== null ) { | |
| 6 | + if ( installLink ) { | |
| 7 | 7 | jQuery( installLink ).on( 'click', frmInstallPro ); |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | const deauthLink = jQuery( '.frm_deauthorize_link' ); |
| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | frmAdminPopup.init(); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | const submenuItem = document.querySelector( '.frm-upgrade-submenu' ); |
| 20 | - if ( null !== submenuItem ) { | |
| 20 | + if ( submenuItem ) { | |
| 21 | 21 | const li = submenuItem.parentNode.parentNode; |
| 22 | 22 | if ( li ) { |
| 23 | 23 | li.classList.add( 'frm-submenu-highlight' ); |
| 24 | 24 | } |
| @@ -131,15 +131,15 @@ | ||
| 131 | 131 | |
| 132 | 132 | function populateOpts( val ) { |
| 133 | 133 | const sc = document.getElementById( 'frm_complete_shortcode' ); |
| 134 | 134 | |
| 135 | - if ( sc !== null ) { | |
| 135 | + if ( sc ) { | |
| 136 | 136 | sc.value = `[${ val }]`; |
| 137 | 137 | } |
| 138 | 138 | jQuery( '.frm_shortcode_option' ).hide(); |
| 139 | 139 | |
| 140 | 140 | const $settings = document.getElementById( `sc-opts-${ val }` ); |
| 141 | - if ( $settings !== null ) { | |
| 141 | + if ( $settings ) { | |
| 142 | 142 | $settings.style.display = ''; |
| 143 | 143 | jQuery( document.getElementById( `sc-${ val }` ) ).trigger( 'click' ); |
| 144 | 144 | } else { |
| 145 | 145 | const $scOpts = jQuery( document.getElementById( 'frm_shortcode_options' ) ); |