Skema konfigurasi lokal untuk menyimpan preferensi kategori game dan antarmuka katalog pengguna rr4.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek preferensi lokal katalog rr4
const catalogConfig = {
brand: "rr4" ,
defaultCategory: "Slot" ,
availableCategories: ["Slot" ],
featuredGames: ["153" , "144" , "001" , "159" , "019" ],
uiSettings: {
enableAnimations: true ,
compactView: false ,
language: "id"
}
};
function getFeaturedGameIds(config) {
return config.featuredGames.filter(id => Boolean(id));
} JSON
{
"brand" : "rr4" ,
"defaultCategory" : "Slot" ,
"availableCategories" : ["Slot" ],
"featuredGames" : ["153" , "144" , "001" , "159" , "019" ],
"uiSettings" : {
"enableAnimations" : true ,
"compactView" : false ,
"language" : "id"
}
}