Commit 07e21d20 authored by Markus Shepherd's avatar Markus Shepherd

added BGA_CLIENT_ID constant

parent 2af36d10
......@@ -20,7 +20,8 @@ ludojApp.constant('API_URL', '/api/')
.constant('SITE_DESCRIPTION', 'Top-rated board games as evaluated by our recommendation engine. ' +
'Find the best board and card games with personal recommendations for your taste!')
.constant('GA_TRACKING_ID', 'UA-128891980-1')
.constant('FAQ_URL', '/assets/faq.json');
.constant('FAQ_URL', '/assets/faq.json')
.constant('BGA_CLIENT_ID', '8jfqHypg2l');
ludojApp.config(function (
$locationProvider,
......
......@@ -13,6 +13,7 @@ ludojApp.controller('BgaController', function BgaController(
$routeParams,
$scope,
API_URL,
BGA_CLIENT_ID,
filterService,
gamesService,
toastr
......@@ -39,7 +40,7 @@ ludojApp.controller('BgaController', function BgaController(
promise = $q.resolve(params);
} else {
bgaParams = {
'client_id': 'SB1VGnDv7M',
'client_id': BGA_CLIENT_ID,
'username': userName,
'limit': 1
};
......@@ -71,7 +72,7 @@ ludojApp.controller('BgaController', function BgaController(
games = response.results;
var ids = _.map(games, 'bga_id');
bgaParams = {
'client_id': 'SB1VGnDv7M',
'client_id': BGA_CLIENT_ID,
'ids': _.join(ids)
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment