Skip to content

Commit 56ab3be

Browse files
author
Corey Wilson
committed
fix(grunt): do not inject uib css by default (issue angular-ui#5548)
1 parent e4b50ab commit 56ab3be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ module.exports = function(grunt) {
436436
.replace(/\\/g, '\\\\')
437437
.replace(/'/g, "\\'")
438438
.replace(/\r?\n/g, '\\n');
439-
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>'); });`;
439+
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; });`;
440440
state.js.push(js);
441441

442442
return state;

0 commit comments

Comments
 (0)