Issue
how can i make my code appear on runtime when deployed ? should i parse it and how do i parse it ? and on the console.log it shows me the array of colors
console.log('colorsss')
let colors = ['#33FFFD', '#FFD133','#FF7733','#3386FF']; //to add my color codes
return this.badgesColorSet[Math.floor(Math.random() * this.badgesColorSet.length)];
}
"badgesColorSet": "['#33FFFD', '#FFD133','#FF7733','#3386FF']" //i have added this code in turnkey-config.json
Solution
// //gets random color out of color set from turnkey.config file for badges
// var random_color = this.badgesColorSet[Math.floor(
// Math.random() * this.badgesColorSet.length)];
// console.log(random_color);
// return random_color;
Answered By - user18471168


0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.