Ippo987 commited on
Commit
370e8b4
·
verified ·
1 Parent(s): d07a2ef

Update static/js/home.js

Browse files
Files changed (1) hide show
  1. static/js/home.js +3 -4
static/js/home.js CHANGED
@@ -1018,8 +1018,8 @@ else if (selectedFeature.feature === 'venues') {
1018
  return response.json();
1019
  }
1020
  } ).then(data1 =>{
1021
- let secureUrl = data1.open_url.replace(/^https?:/, window.location.protocol);
1022
- window.location.href = secureUrl.redirect;
1023
  console.log(secureUrl);
1024
  // fetch(secureUrl, {
1025
  // method: 'GET',
@@ -1069,8 +1069,7 @@ else if (selectedFeature.feature === 'venues') {
1069
  return response.json();
1070
  }
1071
  } ).then(data1 =>{
1072
- let secureUrl = data1.open_url.replace(/^https?:/, window.location.protocol);
1073
- window.location.href = secureUrl.redirect;
1074
  console.log(secureUrl);
1075
  } )
1076
  });
 
1018
  return response.json();
1019
  }
1020
  } ).then(data1 =>{
1021
+
1022
+ window.location.href = data1.redirect;
1023
  console.log(secureUrl);
1024
  // fetch(secureUrl, {
1025
  // method: 'GET',
 
1069
  return response.json();
1070
  }
1071
  } ).then(data1 =>{
1072
+ window.location.href = data1.redirect;
 
1073
  console.log(secureUrl);
1074
  } )
1075
  });