Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
move facebook app id to config
Browse files Browse the repository at this point in the history
  • Loading branch information
mbjorkegren committed Feb 27, 2018
1 parent 3691854 commit 876b94d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ gulp.task('index', [
basepath: basepath,
basepath_visbundle: basepath_visbundle_dev,
d3Filename: 'd3.js',
fbAppId: polisConfig.FB_APP_ID,
useIntercom: !isTrue(polisConfig.DISABLE_INTERCOM),
versionString: versionString,
domainWhitelist: domainWhitelist,
Expand All @@ -266,6 +267,7 @@ gulp.task('index', [
basepath: basepath, // proxy through server (cached by cloudflare, and easier than choosing a bucket for preprod, etc)
basepath_visbundle: basepath,
d3Filename: 'd3.min.js',
fbAppId: polisConfig.FB_APP_ID,
useIntercom: !isTrue(polisConfig.DISABLE_INTERCOM),
versionString: versionString,
domainWhitelist: domainWhitelist,
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '661042417336977',
appId : '<%= fbAppId %>',
xfbml : true,
version : 'v2.1'
});
Expand Down
3 changes: 3 additions & 0 deletions polis.config.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ module.exports = {

DISABLE_INTERCOM: true,

FB_APP_ID: '661042417336977',

S3_BUCKET_PROD: 'pol.is',
S3_BUCKET_PREPROD: 'preprod.pol.is',

SCP_SUBDIR_PREPROD: 'preprod',
SCP_SUBDIR_PROD: 'prod',


UPLOADER: 'scp',
// UPLOADER: 's3',
};

0 comments on commit 876b94d

Please sign in to comment.