Skip to content

Commit

Permalink
Log warning for deprecated use of application.showGitHubRibbon property
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Dec 19, 2017
1 parent 1251ad8 commit 92644ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/js/controllers/NavbarController.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ angular.module('juiceShop').controller('NavbarController', [
if (config && config.application && config.application.gitHubRibbon !== null) {
$rootScope.gitHubRibbon = config.application.gitHubRibbon !== 'none' ? config.application.gitHubRibbon : null
}
// TODO Remove backward-compatibility with `showGitHubRibbon` config property in v7.0.0
// TODO Remove backward-compatibility of `showGitHubRibbon` config property in v7.0.0
if (config && config.application && config.application.showGitHubRibbon === false) {
console.log('Configuration property "application.showGitHubRibbon" is deprecated. Please use "application.gitHubRibbon" instead. See https://bkimminich.gitbooks.io/pwning-owasp-juice-shop/content/part1/customization.html#yaml-configuration-file')
$rootScope.gitHubRibbon = 'none'
}
}).catch(function (err) {
Expand Down

0 comments on commit 92644ad

Please sign in to comment.