| @@ -28,9 +28,10 @@ | ||
| 28 | 28 | $this = $( this ), |
| 29 | 29 | allowMarketing = $this.hasClass( 'allow-marketing' ), |
| 30 | 30 | cursor = $this.css( 'cursor' ), |
| 31 | 31 | $products = $gdprOptinNotice.find( 'span[data-plugin-id]' ), |
| 32 | - pluginIDs = []; | |
| 32 | + pluginIDs = [], | |
| 33 | + ajaxUrl = <?php echo Freemius::ajax_url() ?>; | |
| 33 | 34 | |
| 34 | 35 | if ( $products.length > 0 ) { |
| 35 | 36 | $products.each(function() { |
| 36 | 37 | pluginIDs.push( $( this ).data( 'plugin-id' ) ); |
| @@ -37,9 +38,9 @@ | ||
| 37 | 38 | }); |
| 38 | 39 | } |
| 39 | 40 | |
| 40 | 41 | $.ajax({ |
| 41 | - url : <?php echo Freemius::ajax_url() ?> + '?' + $.param({ | |
| 42 | + url : ajaxUrl + (ajaxUrl.includes('?') ? '&' : '?') + $.param({ | |
| 42 | 43 | action : '<?php echo $fs->get_ajax_action( 'gdpr_optin_action' ) ?>', |
| 43 | 44 | security : '<?php echo $fs->get_ajax_security( 'gdpr_optin_action' ) ?>', |
| 44 | 45 | module_id: '<?php echo $fs->get_id() ?>' |
| 45 | 46 | }), |