Skip to content

Commit

Permalink
fix elastic#7125 - disable angular debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Jul 10, 2016
1 parent fe4dea3 commit ea8ba9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default async (kbnServer, server, config) => {
buildSha: config.get('pkg.buildSha'),
basePath: config.get('server.basePath'),
serverName: config.get('server.name'),
devMode: config.get('env.dev'),
uiSettings: {
defaults: await uiSettings.getDefaults(),
user: isElasticsearchPluginRed ? {} : await uiSettings.getUserProvided()
Expand Down
3 changes: 3 additions & 0 deletions src/ui/public/chrome/api/angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ module.exports = function (chrome, internals) {
return a.href;
}()))
.config(chrome.$setupXsrfRequestInterceptor)
.config(['$compileProvider', function ($compileProvider) {
if (!internals.devMode) $compileProvider.debugInfoEnabled(false);
}])
.run(($location, $rootScope, Private) => {
chrome.getFirstPathSegment = () => {
return $location.path().split('/')[1];
Expand Down

0 comments on commit ea8ba9f

Please sign in to comment.