Ippo987 commited on
Commit
1a04783
·
verified ·
1 Parent(s): 6b1e6bb

Update static/js/home.js

Browse files
Files changed (1) hide show
  1. static/js/home.js +6 -18
static/js/home.js CHANGED
@@ -1019,10 +1019,11 @@ else if (selectedFeature.feature === 'venues') {
1019
  }
1020
  } ).then(data1 =>{
1021
  let secureUrl = data1.open_url.replace(/^https?:/, window.location.protocol);
 
1022
  console.log(secureUrl);
1023
- fetch(secureUrl, {
1024
- method: 'GET',
1025
- });
1026
  } )
1027
 
1028
  } else {
@@ -1069,25 +1070,12 @@ else if (selectedFeature.feature === 'venues') {
1069
  }
1070
  } ).then(data1 =>{
1071
  let secureUrl = data1.open_url.replace(/^https?:/, window.location.protocol);
1072
- fetch(secureUrl, {
1073
- method: 'GET',
1074
- });
1075
  } )
1076
  });
1077
  }
1078
  })
1079
- // .then(response => {
1080
- // if (!response.ok) {
1081
- // throw new Error(`Dashboard loading failed: ${response.status}`);
1082
- // }
1083
- // return response.json();
1084
- // })
1085
- // .then(dashboardData => {
1086
-
1087
- // console.log('Dashboard loaded successfully:', dashboardData);
1088
- // loadingOverlay.hide();
1089
- // //
1090
- // })
1091
  .catch(error => {
1092
  console.error('Error:', error);
1093
  showPaperAlert(
 
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',
1026
+ // });
1027
  } )
1028
 
1029
  } else {
 
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
  });
1077
  }
1078
  })
 
 
 
 
 
 
 
 
 
 
 
 
1079
  .catch(error => {
1080
  console.error('Error:', error);
1081
  showPaperAlert(