Skip to content

Commit

Permalink
Framework: Show the branch badge for development env only
Browse files Browse the repository at this point in the history
  • Loading branch information
Tug committed Dec 14, 2015
1 parent e4f819b commit 55f5a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ function getDefaultContext( request ) {
jsFile: 'build',
faviconURL: '//s1.wp.com/i/favicon.ico',
isFluidWidth: !! config.isEnabled( 'fluid-width' ),
devDocsURL: '/devdocs',
branchName: getCurrentBranchName()
devDocsURL: '/devdocs'
};

context.app = {
Expand Down Expand Up @@ -168,6 +167,7 @@ function getDefaultContext( request ) {
context.devDocs = true;
context.feedbackURL = 'https://github.com/Automattic/wp-calypso/issues/new';
context.faviconURL = '/calypso/images/favicons/favicon-development.ico';
context.branchName = getCurrentBranchName();
}

if ( config.isEnabled( 'code-splitting' ) ) {
Expand Down

0 comments on commit 55f5a20

Please sign in to comment.