Skip to content

Commit

Permalink
Update random.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gauthammariyappan authored Apr 9, 2024
1 parent 93bf6a7 commit 4bacca9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions random.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ function getRandomName() {
function getAppKey(){
let appKey = sessionStorage.getItem('appKey');
if (!appKey) {
const currentTime = new Date().getSeconds();
const isEven = currentTime % 2 === 0;
if (isEven) {
sessionStorage.setItem('appKey', '27a4a87d6e27e86a7cd64de89cb3ec8d');//Delivery Site
} else {
sessionStorage.setItem('appKey', 'f1d2754e961fb7e8597461008c50bb87' );//zylker_demo
}
sessionStorage.setItem('appKey', 'c012eed591418a9aa7e1655a6bb83039');//Delivery Site
// const currentTime = new Date().getSeconds();
// const isEven = currentTime % 2 === 0;
// if (isEven) {
// sessionStorage.setItem('appKey', '27a4a87d6e27e86a7cd64de89cb3ec8d');//Delivery Site
// } else {
// sessionStorage.setItem('appKey', 'f1d2754e961fb7e8597461008c50bb87' );//zylker_demo
// }
}
return appKey;

}
}

0 comments on commit 4bacca9

Please sign in to comment.