Skip to content
Permalink
Browse files

Change let and const to var

- Changed to var because of possible browser compatability issue.
  • Loading branch information...
deepaklalwani97 committed Mar 5, 2019
1 parent e8196a2 commit 0c808f14b7cc5523c1166e1c89ff86ec6ca3ab3c
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/b2w-redirection-ajax.js
@@ -40,7 +40,7 @@ function rt_start_config( nonce ){
function generate_code( domain_name, curr_domain, nonce){

jQuery( '#code_here' ).show();
let response = jQuery( '#code_here' ).html();
var response = jQuery( '#code_here' ).html();
response = response.replace( /{{curr_domain}}/g, curr_domain );
response = response.replace( /{{domain_name}}/g, domain_name );
response = response.replace( /{{nonce}}/g, nonce );
@@ -77,7 +77,7 @@ function check_configuration( domain_name, nonce ) {
jQuery( '#hide_b2wr_notice_block' ).click(
function() {

const nonce = $( '#b2wr_nonce_field' ).val();
var nonce = $( '#b2wr_nonce_field' ).val();

jQuery.ajax(
{

0 comments on commit 0c808f1

Please sign in to comment.
You can’t perform that action at this time.