Skip to content

Commit

Permalink
fix(grunt): do not inject uib css by default (issue angular-ui#5548)
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Wilson committed Mar 1, 2016
1 parent e4b50ab commit 56ab3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ module.exports = function(grunt) {
.replace(/\\/g, '\\\\')
.replace(/'/g, "\\'")
.replace(/\r?\n/g, '\\n');
js = `angular.module('ui.bootstrap.${moduleName}').run(function() {!angular.$$csp().noInlineStyle && angular.$$uibInjectCss && angular.element(document).find('head').prepend('<style type="text/css">${css}</style>'); });`;
js = `angular.module('ui.bootstrap.${moduleName}').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibCss && angular.element(document).find('head').prepend('<style type="text/css">${css}</style>'); angular.$$uibCss = true; });`;
state.js.push(js);

return state;
Expand Down

0 comments on commit 56ab3be

Please sign in to comment.