Skema konfigurasi lokal untuk menyimpan preferensi kategori dan daftar game rtzzz.
{ } client_config.js{ } client_config.json
Salin kode
JavaScript
// Konfigurasi objek lokal aplikasi rtzzz
const clientConfig = {
brand: "rtzzz" ,
platform: "android" ,
defaultCategory: "Permainan Slot" ,
initialGames: [
{ id: "003" , name: "Fortune Gods" },
{ id: "203" , name: "Princess Frog" },
{ id: "177" , name: "Dragons Treas" }
],
preferences: {
notificationsEnabled: true ,
language: "id"
}
};
function getInitialGameList() {
return clientConfig.initialGames.map(game => game.name);
} JSON
{
"brand" : "rtzzz" ,
"platform" : "android" ,
"defaultCategory" : "Permainan Slot" ,
"initialGames" : [
{ "id" : "003" , "name" : "Fortune Gods" },
{ "id" : "203" , "name" : "Princess Frog" },
{ "id" : "177" , "name" : "Dragons Treas" }
],
"preferences" : {
"notificationsEnabled" : true ,
"language" : "id"
}
}